1837965 Members
2641 Online
110124 Solutions
New Discussion

DNS Resolving issue

 
sanvel
Occasional Contributor

DNS Resolving issue

Hi
In my environment i am having hp-ux 11iv1 server.I'm tyring to configure DNS on this server.I'm just using my existing domian as a default domain name for my DNS.i too have another 2 domains with same subnet range.Issue is,my DNS server doesn't resolving the hosts except default domain hosts.

pls help me to resolv this issue.


Thanks in advance,
sanvel
6 REPLIES 6
Steven Schweda
Honored Contributor

Re: DNS Resolving issue

> [...] I'm tyring to configure DNS [...]

What, exactly, did you do?

> [...] i too have another 2 domains with
> same subnet range. [...]

What, exactly, does that mean?

> [...] my DNS server doesn't resolving the
> hosts [...]

As usual, showing actual commands with their
actual output can be more helpful than vague
descriptions or interpretations.
Victor Fridyev
Honored Contributor

Re: DNS Resolving issue

It looks like you have to do something like this in your resolv.conf:

#/etc/resolv.conf
search domain1 domain2 domain3
nameserver IP1
nameserver IP2
nameserver IP3

Of course, if I understand you right 8)))
Entities are not to be multiplied beyond necessity - RTFM
sanvel
Occasional Contributor

Re: DNS Resolving issue

Hi,
1.Entered fully qualified host names in /etc/hosts
172.20.0.6 hp-ux.cvr.org
172.20.0.1 pd.cvr.org
172.20.0.5 cvr.in

2.created a dir manualy for DNS data files

#mkdir /etc/named.data
#chmod 755 /etc/named.data
#cd /etc/named.data
3.Used hosts_named_utility

#hosts_to_named -d -n -Z -b /etc/named.conf

4.Edited /etc/rc.config.d/namesvrs
Named=1
5.Started the Daemon,
/sbin/init.d/named start


In /etc/resolv.conf
search cvr.org
nameserver 172.20.0.6
In /etc/nsswitch.conf
hosts dns,files

But,The actual problem is,DNS doesn't resolving the hosts of another domain (i.e)cvr.in with ip 172.20.0.5 (mentioned above in /etc/hosts)in our network.
Shibin_2
Honored Contributor

Re: DNS Resolving issue

>> In /etc/nsswitch.conf
hosts dns,files

I guess, that is the problem. Remove the coma and use space.

i.e it will be like this

hosts dns files
Regards
Shibin
Bill Hassell
Honored Contributor

Re: DNS Resolving issue

> hosts dns files

This can configuration can lead to a lot of reliability and problems. If you choose files first, you can bypass DNS problems by placing important hostnames in /etc/hosts. Use something like this in /etc/nsswitch.conf:

passwd: files
group: files
hosts: files [NOTFOUND=continue UNAVAIL=continue] dns
ipnodes: files [NOTFOUND=return UNAVAIL=return TRYAGAIN=return]
services: files
networks: files
protocols: files
rpc: files
publickey: files
netgroup: files
automount: files
aliases: files


Bill Hassell, sysadmin
Bill Hassell
Honored Contributor

Re: DNS Resolving issue

Also, nsquery is much better in defining the rules. Use nsquery rather than nslookup:

nsquery hosts mycomputer
nsquery hosts 1.2.3.4
nsquery hosts mycomputer.mydomain.com


Bill Hassell, sysadmin