Operating System - HP-UX
1824983 Members
3787 Online
109678 Solutions
New Discussion юеВ

Re: unable to resolve simple host name

 
SOLVED
Go to solution
steven Burgess_2
Honored Contributor

unable to resolve simple host name

Hi all

I've just configured my first primary and slave dns servers -

I can resolve ip address and box names using the fqdn but seem to have trouble resolving the simple host name

I have a B class address

Have the following files in /etc/named.data

db.127.0.0
db.*.* ( network portion of address )
db.tnt

My param file looks like, have * the ip addresses

-d gb.tnt.com
-n *.*
-z *.*.*.*
-b /etc/named.boot
-s

My /etc/resolv.conf looks like

domain gb.tntpost.com
nameserver

nameserver


My nsswitch looks like

hosts: dns [NOTFOUND=continue] files

I have a feeling the issue is with the db.tnt file as this is what (should) resolve my host names -

Any help would be great -

Regards

Steve

take your time and think things through
5 REPLIES 5
someone_4
Honored Contributor

Re: unable to resolve simple host name

hi
what did your etc hosts file look like? Did you have the alias in there after the fqdn?
Like so?

ip.addy.of.host hosta.domain.net hosta

i used
hosts_to_named -d yourdomain.net -n 192.168.10

and simple host name look up works.

~ Richard
steven Burgess_2
Honored Contributor

Re: unable to resolve simple host name

Hi Richard

example entry in /etc/hosts

# <BR /><BR />I see you have run hosts_to_named specifying the -d and -n on the command line as opposed to -f <file> - wouldn't have though that would make a difference<BR /><BR />Regards<BR /><BR />Steve<BR /><BR /><BR /><BR /><BR />
take your time and think things through
George_Dodds
Honored Contributor
Solution

Re: unable to resolve simple host name

Hi Steve,

Your hosts entries should be
# <BR /><BR />Could try to rename resolv.conf to see if it can resolv ok from the host file.<BR /><BR />Cheers<BR /><BR />George<BR /><BR />
someone_4
Honored Contributor

Re: unable to resolve simple host name

George is right your /etc/hosts file should be

Your hosts entries should be
# <BR /><BR />before your hosts_to_named<BR />the -f option should not make a difference as long as you have the options set up in your file. But you can try to run it with the -d and -n. But make sure you have your /etc/hosts right with the short name and the fqdn because I beleive that if your /etc/hosts is not right your dns will not work.<BR /><BR />if you look at your db.yourdomain file you should see where the short name in there and the fqdn and how it is linked together. It will look some what like so like so ..<BR /><BR />shortname.subdomain IN A ip.addy.of.host<BR />lvadm01 IN CNAME shortname.subdomain.domain.net.<BR />aliasofhost IN CNAME shortname.subdomain.domain.net.
steven Burgess_2
Honored Contributor

Re: unable to resolve simple host name

Hi Chaps

Thanks for the replies - just got in the office - got a root disk failure to attend at the moment - will check this out later

Thanks again

Steve
take your time and think things through