LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 06-05-2007, 02:29 PM   #1
Ciralia
LQ Newbie
 
Registered: May 2007
Posts: 13

Rep: Reputation: 0
Question A few basic DNS Server Questions


Hello all, I am setting up an Asterisk SIP Server to run on the same PC as a Fedora 6 DNS Server. I am really new to Fedora, and I know that the DNS service is called named but I do not know if it is running or how to test to see if it is running. Can anyone tell me some basic CLI commands for named? Also, when I type system-config-bind, nothing happens.

On another note, when I type system-config-network I get an error box that says I am missisng the kudzu module. How would I get this module?

Thank you.
 
Old 06-05-2007, 03:59 PM   #2
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,393
Blog Entries: 1

Rep: Reputation: 63
From the DNS server (the fedora box) the command "service named status" will tell if the named is running or not. If it is not running you will get something like that:
Code:
[root@babylon5 ~]# service named status
rndc: connect failed: 127.0.0.1#953: connection refused
[root@babylon5 ~]#
and if it is running...
Code:
[root@babylon5 ~]# service named status
number of zones: 17
debug level: 0
xfers running: 0
xfers deferred: 0
soa queries in progress: 0
query logging is OFF
recursive clients: 0/0/1000
tcp clients: 0/100
server is up and running
[root@babylon5 ~]#

You can control the service using "service named start" or "service named stop".
This command start/stops named in the current running session only.

To set named to run or not, in the next boot, use "chkconfig named on" (or off), and "chkconfig --list named" to see in what run levels it will run.

and to test it,
Code:
[root@babylon5 ~]# dig @localhost www.google.com

; <<>> DiG 9.4.0 <<>> @localhost www.google.com
; (1 server found)
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 55232
;; flags: qr rd ra; QUERY: 1, ANSWER: 5, AUTHORITY: 7, ADDITIONAL: 0

;; QUESTION SECTION:
;www.google.com.                        IN      A

;; ANSWER SECTION:
www.google.com.         604800  IN      CNAME   www.l.google.com.
www.l.google.com.       300     IN      A       72.14.205.103
www.l.google.com.       300     IN      A       72.14.205.104
www.l.google.com.       300     IN      A       72.14.205.99
www.l.google.com.       300     IN      A       72.14.205.147

;; AUTHORITY SECTION:
l.google.com.           86399   IN      NS      f.l.google.com.
l.google.com.           86399   IN      NS      e.l.google.com.
l.google.com.           86399   IN      NS      a.l.google.com.
l.google.com.           86399   IN      NS      c.l.google.com.
l.google.com.           86399   IN      NS      g.l.google.com.
l.google.com.           86399   IN      NS      b.l.google.com.
l.google.com.           86399   IN      NS      d.l.google.com.

;; Query time: 1114 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Tue Jun  5 18:00:20 2007
;; MSG SIZE  rcvd: 228

[root@babylon5 ~]#
note the SERVER line near to end. It tells you what server answered your question. The result of question itself is in the output, and the general status is in "status: NOERROR" in the header.

Last edited by marozsas; 06-05-2007 at 04:02 PM.
 
Old 06-06-2007, 07:26 AM   #3
Ciralia
LQ Newbie
 
Registered: May 2007
Posts: 13

Original Poster
Rep: Reputation: 0
Thank you marozsas that is very helpful. From the commands you listed, it does appear that the server is running, but is there a reason why the command system-config-bind doesn't work? Are named and bind two different things?
 
Old 06-08-2007, 02:38 PM   #4
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,393
Blog Entries: 1

Rep: Reputation: 63
No. They are the same.
Try the un-install and re-install it again...may be some file was corrupetd.

And I forgot to tell you the file where the nameservers are configured: It is /etc/resolv.conf. You can edit it by hand, if you dislike system-whatever tools. Mine looks like:
Code:
search mydomaim.com
nameserver 200.204.0.138
nameserver 200.204.0.10
The directive "search" will append that domain in host names that are not fully qualified, I mean, a lookup for the host "mail" will turn in a search for "mail.mydomain.com". Handy.

see'ya,
 
  


Reply

Tags
dns


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
Basic questions about mail / web server mazzo Ubuntu 2 12-27-2006 10:16 PM
After installing slack10 on a server, few basic questions Belize Slackware 4 08-17-2004 02:00 AM
DNS server questions link1305 Linux - Networking 7 06-01-2004 01:48 AM
How to configure a basic DNS server? kikis Linux - Newbie 1 05-06-2004 09:51 PM
Questions about setting up a dns server fail66 Linux - Networking 1 11-24-2001 06:20 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration