Link to home
Start Free TrialLog in
Avatar of TAF2000
TAF2000

asked on

Server be it's own DNS server??

My question is.. can a server be it's own DNS server?

Im pretty sure that it can, but can it do it with only 1 IP address?  If so, how?  If not, what is needed.

I currently have one server (Linux Box) that I am using as a web server and as a DNS server for a second Linux Box.  But I want to have my server use itself for DNS so that I don't need to pay for the other server that I am renting.

I am using Redhat 7.3.

If it is not possible, what is a good solution?

THanks.  
Avatar of ahoffmann
ahoffmann
Flag of Germany image

just add a corresponding namserver line to your /etc/resolv.conf (should be first nameserver line)
Avatar of jlevie
jlevie

Well you do need two nameservers for a domain and they both can't point to the same IP.  You may be able to get your provider to act as a secondary for your domain, which would mean that you eliminate the second box.
oops, didn't read about the "renting". jlevie is right ...
Avatar of TAF2000

ASKER

How about if the server has multiple (static) ip addresses available to it?  Then could it serve it's own DNS?  Which brings up the question, how do you get 1 computer to use more than 1 ip?  

Also can you explain "just add a corresponding namserver line to your /etc/resolv.conf (should be first nameserver line) "  I am pretty new to this stuff.

I can add more points if needed!

Thanks
hehe, one server with virtual IPs, probably not what NIC people had in mind when they required **2** server's ;-)

> I am pretty new to this stuff.
If you whant to admin a primary DNS yourself, you realy need to know what you do. You need yourself get used to DNS. Otherwise trouble starts, and that's pain for the internet community.
Avatar of TAF2000

ASKER

>hehe, one server with virtual IPs, probably not what NIC >people had in mind when they required **2** server's ;-)

Probably not, but I just just asking.

>If you whant to admin a primary DNS yourself, you realy >need to know what you do. You need yourself get used to >DNS.

Yes, that is what I am doing here..  :)  I've been running my own dedicated server for over a year now, and I am just planing on making a few changes.. I thought maybe I could get some help from EE.  
no offence, but if "you do not knwo how to add a line to /etc/resolv.conf", you realy need to do some education about DNS first, IMHO

IMHO again, it does not make sence to explain such simple things (which also can simply be read in any man-page) if you like to become an expert-admin for DNS.
Please make yourself used to named, bind, DNS, resolver, then come back and ask detailed question (not to be found in man-page or usual docs).

Back to your initial question: can a server be it's own DNS server?
short answer: YES (see my and jlevie's suggestion)
Question answered.
ASKER CERTIFIED SOLUTION
Avatar of jlevie
jlevie

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of TAF2000

ASKER

Thanks for giving some reasoning.  

I have looked over some of the man pages for bind and named (Before even posting this question..)  but much of it didn't make as much sense..  So where do I go from here, where is a good place to learn more about DNS and setting up a nameserver?

Thanks
The definitive reference on DNS is "DNS and Bind" by Albitz & Liu, published by O'Reilly & Assoc. In my opinion it ought to be required reading for anyone that is going to to be running a name server. It will probably tell you more than you wanted to know, but it does cover the subject completely.