1833016 Members
2138 Online
110048 Solutions
New Discussion

DNS Questions

 
SOLVED
Go to solution
PSS SYS ADMIN
Super Advisor

DNS Questions

Hi everyone,
I have 2 DNS server on 2 hpux11.00 hosts.
I have this problem when I try to resolve public internet names the DNS host add the suffix localhost.com to the name.
This is not correct, the DNS must resolve locally the names with localhost.com suffix and the othe namex on the exeternal DNS.

The other question is:
How I must configure the DNS server to use correctly the external DNS?

Regards...
PSS


-
12 REPLIES 12
John Bolene
Honored Contributor

Re: DNS Questions

I resolve all internal names on my server and forward all other requests to an external DNS server for internet addys.

It is always a good day when you are launching rockets! http://tripolioklahoma.org, Mostly Missiles http://mostlymissiles.com
Steven E. Protter
Exalted Contributor

Re: DNS Questions

If your HP server has outside accesss, all you need to do for resolution is modify /etc/resolv.conf

nameserver 192.168.0.15
nameserver 192.168.0.16
nameserver 192.168.0.17

Just have real ip addresses there of an external DNS server your ISP gives you.

If you have external access, you're done.

If the HP box does not have external Internet Access, which is a good idea btw, then set the nameserver to your firewall or a machine that has External access and make sure whichever the solution is is configured to pass DNS information along.

SEP


Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com

Re: DNS Questions

Hi,
Did you have correct config of named.conf ( for Bind 8 and higher)
1)have you configured hint zone for "."?
2)Have you correct db.cache?
3)If you forward messages to other DNS server it is configured in options?

What version of BIND are you using?
Franta.
Mark Greene_1
Honored Contributor

Re: DNS Questions

You need to add a "forwarders" statement to /etc/named.boot with the IP addresses of the DNS servers of your ISP. You can put more than one IP on the same line, seperated by spaces.

Then HUP named, and you should be all set.

HTH
mark
the future will be a lot like now, only later
PSS SYS ADMIN
Super Advisor

Re: DNS Questions

For Franta.

The version of the bind is 4.9.7
I don't understand the questione 1 e 2
I don't know how to configure the "options"

Regards...
PSS
harry d brown jr
Honored Contributor
Solution

Re: DNS Questions

Take a look at my documentation on DNS:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xdb005fe8b250d71190080090279cd0f9,00.html

live free or die
harry
Live Free or Die
Steven E. Protter
Exalted Contributor

Re: DNS Questions

I'm posting a script for building the name server based on /etc/hosts

If you clean up /etc/hosts and make it standard, it will generate proper records for a single domain.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com

Re: DNS Questions

Ok,
you need in named.boot, cache zone for "."
cache . db.cache
if you use forward server.
forwarders ip_of_forward_DNS

Bind 8 and higher have in named.conf for zone "." as type hint, it means if it the zone is not defined, bind try to ask root cache servers in db.cache, or if is forwarder defined, bind forward its question to other server.
Franta.

Re: DNS Questions

here is one example config
Steven E. Protter
Exalted Contributor

Re: DNS Questions

Script failed to post.

hmmm.

trying again.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Ivajlo Yanakiev
Respected Contributor

Re: DNS Questions

first read some info about DNS. Basic staff.
http://www.isc.org/products/BIND/
I prefer use Bind 8 or 9.
You must know that Bind 4 have DIFFERENT config file that bind 8 or bind 9.

Todd Whitcher
Esteemed Contributor

Re: DNS Questions

Hello,

Theres some great information already posted to your query. I thought I'd follow it up w/ some more resources for you.

If you have a login to the ITRC you can view a Cookbook for setting up BIND 8.1.2 and BIND 9.2. Search on Document id DNSKBAN00000901


Its a good idea to update from 4.9.7 to 8.1.2 or 9.2. You can download the newer versions from here: http://www.software.hp.com/ISS_products_list.html

HP's Manual Installing and Administering Internet Services has some basic configuration information for DNS.

http://www.docs.hp.com/hpux/onlinedocs/B2355-90147/B2355-90147.html


The Best Resource for Configuring BIND is the DNS and BIND book From O'Reilly y Paul Albitz & Cricket Liu.

I hope this information is helpful

Todd Whitcher