LinuxQuestions.org
Visit Jeremy's Blog.
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 03-30-2005, 11:28 AM   #1
sys7em
Member
 
Registered: Oct 2004
Location: Germany
Distribution: Slackware
Posts: 158

Rep: Reputation: 30
Probelm with the local DNS Server ...


Hello to everyone ...

Here's my issue ...

I have setuped a small DNS Server for my HOME LAN Network ... Assume 3 PC's
192.168.0.1 -> ng.lan (Slackware 10)
192.168.0.2 -> nfs.ng.lan
192.168.0.3 -> jori.ng.lan


When I do ...ping www.ng.lan ... everything is working fine .. the machine is being pinged (192.168.0.1) .. the web server is being browsed etc. etc..

But when I do

$ping ng.lan .. nothing happens

I open a browser and I type http://ng.lan ...again nothing happens ...

Here's my Zone file:




Quote:
;
; Zone File for "ng.lan" - Internal ONLY
;
$TTL 1D
@ IN SOA galaxy.ng.lan. sasho.ng.lan. (
10 ; Serial
8H ; Refresh
2H ; Retry
4W ; Expire
1D ) ; Minimum
;
IN NS galaxy ; Name Server for the domain
IN MX 10 galaxy ; Mail Exchange
;
galaxy IN A 192.168.0.1 ; IP address for 'galaxy'
www IN CNAME galaxy ; 'galaxy' is also known as www
ftp IN CNAME galaxy ; 'galaxy' is also known as ftp


;
nfs IN A 192.168.0.2 ; IP address for 'wkstn1'
jori IN A 192.168.0.3 ; IP address for 'wkstn2'
Here's the output of #dig www.ng.lan

Quote:
; <<>> DiG 9.3.0 <<>> www.ng.lan
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 52829
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;www.ng.lan. IN A

;; ANSWER SECTION:
www.ng.lan. 86400 IN CNAME galaxy.ng.lan.
galaxy.ng.lan. 86400 IN A 192.168.0.1

;; AUTHORITY SECTION:
ng.lan. 86400 IN NS galaxy.ng.lan.

;; Query time: 35 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Wed Mar 30 20:20:03 2005
;; MSG SIZE rcvd: 79
Here's the output of

$dig ng.lan (Without www)

Quote:
; <<>> DiG 9.3.0 <<>> ng.lan
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 17910
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;ng.lan. IN A

;; AUTHORITY SECTION:
ng.lan. 86400 IN SOA galaxy.ng.lan. sasho.ng.lan. 10 28800 7200 2419200 86400

;; Query time: 2 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Wed Mar 30 20:26:09 2005
;; MSG SIZE rcvd: 73

Any help will be of use ... Plz give a minute of your time and help a linux fellow

P.S. I forgot to mention that I use Bind 9.3.0 and Slackware 10 with Kernel 2.4.26

Cheers

Last edited by sys7em; 03-30-2005 at 11:30 AM.
 
Old 03-30-2005, 11:59 AM   #2
kegwell
Member
 
Registered: Feb 2004
Distribution: Gentoo Linux
Posts: 46

Rep: Reputation: 15
You need to add multiple a records...you have an A record for www.ng.lan, but there is not one for ng.lan..add an A record just like www.ng.lan, but without the 'www'...incriment the serial number on the zone file and restart bind.
 
Old 03-30-2005, 12:11 PM   #3
sys7em
Member
 
Registered: Oct 2004
Location: Germany
Distribution: Slackware
Posts: 158

Original Poster
Rep: Reputation: 30
Well ... Can you explain where and what should I type ...

10x
 
Old 03-30-2005, 01:10 PM   #4
kegwell
Member
 
Registered: Feb 2004
Distribution: Gentoo Linux
Posts: 46

Rep: Reputation: 15
;Zone File for "ng.lan" - Internal ONLY
;
$TTL 1D
@ IN SOA galaxy.ng.lan. sasho.ng.lan. (
03302005 ; Serial
8H ; Refresh
2H ; Retry
4W ; Expire
1D ) ; Minimum
;
IN NS galaxy
N MX 10 galaxy
;

@ A 192.168.0.1
galaxy IN A 192.168.0.1
www IN CNAME galaxy
ftp IN CNAME galaxy
;
nfs IN A 192.168.0.2 ; IP address for 'wkstn1'
jori IN A 192.168.0.3 ; IP address for 'wkstn2'
 
Old 03-31-2005, 12:37 PM   #5
sys7em
Member
 
Registered: Oct 2004
Location: Germany
Distribution: Slackware
Posts: 158

Original Poster
Rep: Reputation: 30
Thanks man .. that really worked ...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Local DNS server Quantum0726 Linux - Networking 3 08-19-2005 02:47 AM
configure pppoe to use local dns server siva_raju78 Linux - Networking 1 07-10-2005 01:20 PM
dns with 2 sendmail server probelm !!! ravi_foru Linux - Networking 0 07-01-2005 12:08 PM
Local webserver -- How to deny all client install their local web server--Please help b:z Linux - Networking 13 04-16-2005 07:11 PM
dns check outside dns before local reaky Linux - Networking 1 02-22-2004 09:27 AM

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

All times are GMT -5. The time now is 11:47 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