Re: DNS and its IP for Linux
Eric Koldeweij <[email protected]>
| Newsgroups | gmane.linux.redhat.release.enigma |
|---|---|
| Message-ID | <[email protected]> |
HL wrote: >Thanks for help. > >When I type command "cat /etc/resolv.conf" and find two IPs, but the server >doesn't have specific name server such as ns1.xxx.com and ns2.xxx.com ... ? >How could I have specific name server with respective IPs ? > Uhmm..... If you think about it it'll come to you I'm sure :) No? OK... To translate names into IP numbers you have to know where your nameserver is to be found. Therefore the resolv.conf is consulted, to find the name servers. If you'd put a name (like ns.mydomain.com) in there it'd need to resolve that name first. So it consults resolv.conf, finds a name there, and the story never ends :) Why would you want to find ns.xxx.com there anyway? In resolv.conf are IP addresses of valid nameservers. It does absolutely *NOT* matter WHICH name servers they are, as long as they accept queries (requests) from clients. There are zillions of those on the Net. You can pick any one you want, though it's probably best (fastest) to use the name servers your administrator/ISP provides for you. I think you do not grasp the difference between name servers and name resolution. Name resolution is done by clients (non-nameservers) and it is done by the client asking a nameserver to translate a name into a number (or vice versa). It is done for every address not just the ones in your domain, and you don't need to run a name server yourself to have those addresses translated. I recommend reading material on it like the DNS-Howto or the masterpiece book "DNS and Bind" (ISBN 0-596-00158-4) Eric.