timeout : unable to connect to DNS


 
Thread Tools Search this Thread
Operating Systems Solaris timeout : unable to connect to DNS
# 1  
Old 06-24-2009
timeout : unable to connect to DNS

i tried to configure DNS on my x86 PC ,in a network but after following all the below mentioned steps , I am getting the message ."timeout : unable to connect to DNS"

Steps followed :

Step 1. First check that the necessary packages are installed to configure DNS.

Step 2. Configure the IP address and check IP with the ifconfig -a command.

Step 3. Enter host name and IP address in the /etc/hosts file.

127.0.0.0 localhost
192.168.1.1 sun.example.com loghost

Step 4. Enter nameserver IP address and domain name in the /etc/resolv.conf file. If the file is not present, then create it.

domain example.com
search example.com
nameserver 192.168.1.1

Step 5. Configure the /etc/named.conf file for the forward and reverse zone files. If this file does not exist, then create it.

options {
DIRECTORY "/var/named";
};

zone " example.com" in {
type master;
file " example.com.zone";
};
zone "1.168.192.in-addr.arpa" in {
type master;
file " example.com.rev";
};
zone "0.0.127.in-addr.arpa" in {
type master;
file "loopback";
};

Step 6. Configure the forward zone and reverse zone files in the /var/named directory. If named directory is not there, create it.

Step 6a. Create a file example.com.zone under the /var/named directory.

// example.com.zone (forward zone file)


@ IN SOA sun.example.com. root.sun.example.com. (
2; Serial number
5; Refresh timer
3600; Retry timer- 1h
604800; Expire timer-1w
86400; Minimum timer -1d
)

IN NS sun.example.com.


sun IN A 192.168.1.1

example.com. IN A 192.168.1.1


localhost IN A 127.0.0.1


Step 6b. Create a file example.com.rev under /var/named directory.

// example.com.rev (reverse zone file)

@ IN SOA sun.example.com. root.sun.example.com. (
1; Serial no:
5; Refresh timer 12 hrs
3600; retry timer 1-hrs
604800; Expire timer -1 week
86400; Minimum timer - 1day
)


IN NS sun.example.com. ; Primary


1 IN PTR sun.example.com.

Step 6c. Create a file loopback under the /var/named directory.

loopback

@ IN SOA sun.example.com. root.sun.example.com. (

1; serial no
5; Refresh timer -12 hours
3600; retry timer -1 hrs
604800; Expire timer - 1 week
86400; Minimum timer - 1 day
)

IN NS sun.example.com.

1.0.0 IN PTR localhost.example.com.

Step 7. Copy /etc/nsswitch.dns to /etc/nsswitch.conf.

Step 8. Now reboot the machine or use this:

/etc/init.d/inetinit restart

Step 9. Check the configuration with this command:

nslookup <domainname>
# 2  
Old 06-24-2009
your machine should act as a dns server?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Unable to connect ASMI

After following the instructions given by resident moderator Bakunin over here https://www.unix.com/aix/279862-installed-memory-32gb-but-shows-only-16gb.html #1 Connect to ASMI #2 Configure the deconfigured memory #3 Start the machine OK, everything is fine, however now cannot connect to... (5 Replies)
Discussion started by: filosophizer
5 Replies

2. Solaris

Unable to connect using ftp

hi I am having issues when trying to connect using ftp, I am having the following error: User (10.100.48.73:(none)): moz 331 Password required for moza. Password: 530 Login incorrect. Login failed. ftp> by 221 Goodbye. I have created a user like this: useradd -g 10 -d /lam/moza -m -s... (11 Replies)
Discussion started by: fretagi
11 Replies

3. Red Hat

Unable to connect Wireless

I have managed to install Broadcom BCM43228 Wireless adapter on a laptop running CentOS 5.9 using instructions at: wiki.centos.org/HowTos/Laptops/Wireless/Broadcom I had the problem "Error for wireless request "Set Encode" (8B2A): SET failed on device... mentioned on the same page and solved... (0 Replies)
Discussion started by: cooltoad
0 Replies

4. HP-UX

Unable to connect SSH from HP-UX

Hi, I'm trying to connect from an HP-UX with SSH2 client(ssh2 3.1.2 on hppa1.1-hp-hpux11.00) to an SSH2 server on a VxWorks system. The SSH connection is failing with the below connection logs: > /usr/local/bin/ssh2 -v -l testuser 10.10.10.10 debug: Ssh2/ssh2.c:1391: Using file... (4 Replies)
Discussion started by: ysafi
4 Replies

5. Emergency UNIX and Linux Support

Unable to connect using SFTP

I shall explain the situation that I am facing to the best extent possible. I require some help, as this situation is an urgent one. I am trying to automate sending data from one AIX machine to another. A script runs that tries to push data received from an upstream application to another AIX... (7 Replies)
Discussion started by: ggayathri
7 Replies

6. AIX

To increase timeout for connect function

Hi All, Is there any way to increase the timeout of connect() function. Kindly provide me some information on configuring the TCP/IP timeout period, used during the AIX 'connect()' function call. Thanks SP (1 Reply)
Discussion started by: saraperu
1 Replies

7. Solaris

Unable to connect to Internet

Hi friends recently i have installed SXDE 1/08 into my machine,and i installed wifi driver also its working fine,Recently i was unable to connect to Internet,I have not changed any configurations and any installations,thing is that i got my iwk0 interface is UP and IP address also and i can... (6 Replies)
Discussion started by: srinivas2828
6 Replies

8. UNIX for Dummies Questions & Answers

wget --dns-timeout script

#!/bin/sh # 'clear' for i in $(seq -w 15 37); do echo $i wget --dns-timeout=0.0001 http://napdweb${i}.eao.abn-iad.ea.com:8000/webcore/test/test.jsp -o 1 A=`cat 1` C=$(expr "$A" :... (1 Reply)
Discussion started by: veerumahanthi41
1 Replies

9. Linux

DNS unable to set up!!

Hi Experts, I am a newbie like in Linux world, practising Fedora Linux on VMWare but DNS is never set up: Below are my conf files: 1. named.conf options { directory "/var/named"; /* * If there is a firewall between you and nameservers you want * to talk... (4 Replies)
Discussion started by: vikasdh
4 Replies

10. HP-UX

Unable to connect to HP-UX 11.11 via eXceed 7.1

Hello HP-UX Gurus, I am having issues trying to start an x-session via eXceed 7.1. When I bring up eXceed via XDMCP Braodcast I see the host name and IP Address but when I try to connect the X window does not come up. I made the modification to the following file “/etc/dt/config/Xaccess”... (2 Replies)
Discussion started by: smokie
2 Replies
Login or Register to Ask a Question