DNS and machine names.

Barry Margolin barmar at alum.mit.edu
Fri Aug 20 00:22:20 UTC 2004


In article <cg3634$nmm$1 at sf1.isc.org>,
 "Wagner Garcia Campagner" <wcampagner at hotmail.com> wrote:

> Hello,
> 
> I have a dought about DNS and machine names and if someone could help me 
> i'll be glad.
> 
> I have a static IP (200.161.16.93). When i do a ping -a from a machine in 
> the internet i get the name 200-161-16-93.dsl.telesp.net.br.
> 
> What i want to know is if there is a way to change this name...  maybe my 
> ISP provider gave it.... i have already a DNS server in this machine 
> answering requests for a domain patchwork.com.br that is mine.

To change the reverse DNS for your address, you'll need your ISP to 
either enter the PTR record in their zone file or delegate the reverse 
DNS to your nameservers.

However, it's not normally necessary to change this reverse DNS.  
There's no problem with having multiple A records that resolve to the 
same address, so you can have mycompany.com.br resolve to your address.

> 
> I want to make this machine answer for my domain too... (mycompany.com.br).
> Is it possible to use this machine as a DNS server to answer request for 
> itself?

Yes.  You should be able to register a hostname for your IP with your 
domain registrar, and then have the domain delegated to your hostname.  
This won't solve the above issue with reverse DNS.

> Another question: i have two NIC cards in this machine... one is for 
> internet and the other is for my LAN (192.168.0.1).... How can i set up this 
> DNS to answer both requests from internet and intranet??? Because  when i do 
> nslookup from the intranet and then set server 192.168.0.1. I get an error 
> message saiyng that the name of the server could not be found....

You need to configure your server as authoritative for the 
0.168.192.in-addr.arpa zone, and put in an entry for its address:

1 IN PTR server-internal.mycompany.com.br.

Or use another tool like "host" or "dig", which doesn't insist that the 
server be able to resolve its own IP to a name.

> The last question: sorry... but i didn't find the answer yet....
> Later i'll make an e-mail server too.... some friends fo my told about 
> reverse zones.... and that i'll have to contact my ISP to make some reverse 
> zone for me.... can i have this reverse zone here in my machine???? I don't 
> want to depend on the ISP...

You don't really need to have a custom reverse zone.  The ISP is already 
providing reverse DNS for your IP, and this is sufficient.

-- 
Barry Margolin, barmar at alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***


More information about the bind-users mailing list