1830939 Members
1782 Online
110017 Solutions
New Discussion

Re: Setting up DNS

 
SOLVED
Go to solution
Paul J. Ledbetter, II
Frequent Advisor

Setting up DNS

Greetings,
I have a Windows Server 2003 set up as an internal DNS server. What do I need to do to set up my HP-UX 11i server to refer to the Windows server for all DNS lookups?

I tried setting up DNS(Bind). I set it up as a "slave" to the Windows server, pointing to it as the DNS resolver. When I do an nslookup , I get the following message:

*** Can't find server name for address : Non-existent domain
*** Default servers are not available
Using /etc/hosts on:

looking up FILES
Name:
Address:
Aliases:

What do I need to do?
I may not know everything, but I'm working on it...
12 REPLIES 12
Sundar_7
Honored Contributor

Re: Setting up DNS

Hi,

You need to configure /etc/resolv.conf and /etc/nsswitch.conf file in your HP-UX 11i server so that the DNS lookups from the 11i server will get forwarded to the windows server

# vi /etc/resolv.conf
domain
server
#

# vi /etc/nsswitch.conf
hosts: dns files
#

Sundar


Learn What to do ,How to do and more importantly When to do ?
Steven E. Protter
Exalted Contributor

Re: Setting up DNS

You do need network connectivity to the W2K server.

To merely obtain dns information, you do not need BIND installed at all.

The changes to nsswitch.conf and having the server in /etc/resolv.conf are enough.

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
miracle
Frequent Advisor

Re: Setting up DNS

This is what we use:

in /etc/resolv.conf

domain mydomain.com
nameserver xx.xx.xxx.x
nameserver xx.xx.xxx.x

in /etc/nsswitch.conf
hosts: files [NOTFOUND=continue UNAVAIL=return TRYAGAIN=return] dns [NOTFOUND=return UNAVAIL=continue TRYAGAIN=return]

Bind is not required.
Paul J. Ledbetter, II
Frequent Advisor

Re: Setting up DNS

Sundar,
The following is the contents of my resolv.conf:

domain
nameserver
search

I just put this in my nsswitch.conf:
hosts: dns files

Still the same thing
I may not know everything, but I'm working on it...
Paul J. Ledbetter, II
Frequent Advisor

Re: Setting up DNS

Miracle: I tried your solution: no-go.
Michael: I have network connectivity to W2K server.
I may not know everything, but I'm working on it...
Sundar_7
Honored Contributor

Re: Setting up DNS

Try a ping of DNS server.

If the ping succeeds

# telnet 53

The command should not return immediately.

From your desktop try this

# nslookup - <2003 DNS serverIP>


Learn What to do ,How to do and more importantly When to do ?
Paul J. Ledbetter, II
Frequent Advisor

Re: Setting up DNS

I can ping my Windows DNS server. I can even ping internet addresses by host name like www.google.com.

The telnet works as expected.

But still the same thing on nslookup, both on my XP pc and in my UNIX environment.
I may not know everything, but I'm working on it...
Juan Manuel Naranjo A.
Frequent Advisor

Re: Setting up DNS

IN BIND how did you set your lookup politics.
(Ie : Lokk first at ? What to do if you donf ind the address in the first phase ? .

Run SAM and check this
Paul J. Ledbetter, II
Frequent Advisor

Re: Setting up DNS

Juan,
I do not understand what you are saying.
I may not know everything, but I'm working on it...
Wilfred Chau_1
Respected Contributor

Re: Setting up DNS

1) you can only have either the domain or the search keyword in the /etc/resolv.conf. Search can accept up to 6 domains.

2) Are there any firewall between the windows and unix server? Make sure port 53 for TCP and UDP is opened for name query and zone transfer.

3) do this manually:

nslookup

Do you get any output?

Sanjiv Sharma_1
Honored Contributor
Solution

Re: Setting up DNS

Paul J. Ledbetter, II
Frequent Advisor

Re: Setting up DNS

Sanjiv,
I had JUST set up a reverse lookup on my Windows 2003 server when I read the links you sent me. The problem is fixed. Thanks a lot.
I may not know everything, but I'm working on it...