LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-11-2006, 10:15 AM   #1
zoffmann
Member
 
Registered: Jun 2005
Posts: 60

Rep: Reputation: 15
Question DNS question (suse)


Hi,
I have configured dns server on suse 10 and I have installed suse 9.3 on one client machine.

I use those machines only locally, so they are not connected to the internet (actually they are two virtual machines in vmware workstation).

It seems that dns is working on dns server, but when I use 'dig' from client I get the following:

#dig mysite.com
#dig: couldn't get address for '@@': failure


What should I do to configure client machine?

Any answer is appreciated.
 
Old 04-11-2006, 10:19 AM   #2
Wells
Member
 
Registered: Nov 2004
Location: Florida, USA
Distribution: Debian, Redhat
Posts: 417

Rep: Reputation: 53
Is /etc/resolv.conf configured with a nameserver line that points to your DNS server? If you are using DHCP for that machine, is your DHCP server pushing out that server for your DNS server?
 
Old 04-11-2006, 12:04 PM   #3
zoffmann
Member
 
Registered: Jun 2005
Posts: 60

Original Poster
Rep: Reputation: 15
resolv.conf on client is like this:

domain mysite.com
nameservers myserver.mysite.com


"myserver" is dns server in domain mysite.com, I don't have dhcp configured I use following two ip-addresses:
server 192.168.0.1
client 192.168.0.2
 
Old 04-11-2006, 07:46 PM   #4
eldoran
LQ Newbie
 
Registered: Apr 2005
Location: Black Hawk, Colorado
Distribution: Ubuntu
Posts: 26

Rep: Reputation: 15
If that is really 'nameservers' - try changing it to singular: 'nameserver' which I believe is the correct configuration option.

Last edited by eldoran; 04-11-2006 at 08:01 PM.
 
Old 04-12-2006, 05:25 AM   #5
zoffmann
Member
 
Registered: Jun 2005
Posts: 60

Original Poster
Rep: Reputation: 15
I have changed to nameserver but with no success. If I type:

#dig @myserver

i get:

; <<>> DiG 9.3.1 <<>> @myserver
; (1 server found)
;; global options; printcmd
;; connection timed out; no servers could be reached


what to do next?
 
Old 04-12-2006, 09:05 AM   #6
eldoran
LQ Newbie
 
Registered: Apr 2005
Location: Black Hawk, Colorado
Distribution: Ubuntu
Posts: 26

Rep: Reputation: 15
Well - you had 'some' success. Note that you get '1 server found' instead of 'not found'.

Next steps are to check firewall settings, check logs and see why it's timing out trying to reach the DNS server. I assume you can ping it? If so, my next step would be to see if it's getting blocked. (/var/log/messages, /var/log/warn, etc on client and server side)

I haven't set up a DNS server myself, so I'm just telling you what I would do ;-)

Oh - and have you tried the IP address of the server for 'nameserver' in resolv.conf? That's probably what I would try first. (nameserver 192.168.0.1)

Last edited by eldoran; 04-12-2006 at 09:08 AM.
 
Old 04-12-2006, 10:39 AM   #7
Wells
Member
 
Registered: Nov 2004
Location: Florida, USA
Distribution: Debian, Redhat
Posts: 417

Rep: Reputation: 53
In another thread, there was someone having the same issue. Make sure that your SOA records are properly formatted and working.
 
Old 04-12-2006, 12:11 PM   #8
zoffmann
Member
 
Registered: Jun 2005
Posts: 60

Original Poster
Rep: Reputation: 15
I have added reverse lookup file which wasn't present and I got the following output after i type:
#dig @myserver


; <<>> DiG 9.3.1 <<>> @myserver
; (1 server found)
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 19777
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;. IN NS

;; Query time: 3 msec
;; SERVER: 192.168.0.1#53(192.168.0.1)
;; WHEN: Tue Apr 11 22:59:42 2006
;; MSG SIZE rcvd: 17


Bellow is the output of my configuration files, maybe something is wrong written.


file: mysite.com:
$TTL 2d
@ IN SOA myserver.mysite.com. root.myserver.mysite.com. (
2006040902 ; serial
3h ; refresh
1h ; retry
1w ; expiry
1d ) ; minimum

mysite.com. IN NS myserver.mysite.com.
myserver IN A 192.168.0.1
myserver.mysite.com. IN A 192.168.0.1


file: localhost.zone
$TTL 1W
@ IN SOA @ root (
42 ; serial (d. adams)
2D ; refresh
4H ; retry
6W ; expiry
1W ) ; minimum

IN NS @
IN A 127.0.0.1


file: 0.168.192.zone
$TTL 2d
@ IN SOA myserver.mysite.com. root.myserver.mysite.com. (
2006040902 ; serial
3h ; refresh
1h ; retry
1w ; expiry
1d ) ; minimum

IN NS myserver.mysite.com.;

1 IN PTR mysite.com.

file: 127.0.0.zone
$TTL 1W
@ IN SOA localhost. root.localhost. (
42 ; serial (d. adams)
2D ; refresh
4H ; retry
6W ; expiry
1W ) ; minimum

IN NS localhost.
1 IN PTR localhost.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Suse DNS vs free DNS server for Newbie maxsanders Linux - Newbie 1 01-31-2006 04:57 PM
Another Apache 2. and DNS Question SuSE Enterpr Sapient Linux - Networking 20 03-30-2005 04:14 AM
DNS Question Huntdawg Linux - Networking 4 09-16-2004 08:28 PM
dns question -- new to dns gadhiraju Linux - Networking 7 05-09-2001 05:59 PM
dns question -- new to dns gadhiraju Linux - General 2 05-09-2001 07:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration