Home › Forums › OS X Server and Client Discussion › DNS › error in dns startup
- This topic has 6 replies, 2 voices, and was last updated 21 years, 6 months ago by
mischa.
-
AuthorPosts
-
September 28, 2003 at 2:31 pm #356477
mischa
Participanteven thoug i followed the instructions in the good article:
Getting DNS Up and Running on Mac OS X Server, by macTroll –
the DNS state in Server Settings says “Indeterminate dns state”.
The startup log says in part: (i have put some interesting things in bold)
*****************************************
Sep 28 00:01:23 ServerX ConsoleMessage: Starting Mac OS X Server services
Sep 28 00:01:23 ServerX ConsoleMessage: Starting Core Services
Sep 28 00:01:24 ServerX sshd[377]: Server listening on [b:f66b08f55a]0.0.0.0[/b:f66b08f55a] port 22.
Sep 28 00:01:24 ServerX named[362]: starting (/etc/named.conf). named 8.3.4-REL Tue Nov 19 03:31:14 PST 2002 root@sting:/private/var/tmp/bind/bind-13.obj~7/bin/named
Sep 28 00:01:24 ServerX named[362]: hint zone “” (IN) loaded (serial 0)
Sep 28 00:01:24 ServerX named[362]: master zone “localhost” (IN) loaded (serial 42)
Sep 28 00:01:24 ServerX named[362]: master zone “0.0.127.in-addr.arpa” (IN) loaded (serial 1997022700)
Sep 28 00:01:24 ServerX named[362]: master zone “hammar.mine.nu” (IN) loaded (serial 10)
Sep 28 00:01:24 ServerX named[362]: master zone “0.0.10.in-addr.arpa” (IN) loaded (serial 1)
Sep 28 00:01:24 ServerX named[362]: listening on [127.0.0.1].53 (lo0)
Sep 28 00:01:24 ServerX named[362]: listening on [10.0.0.2].53 (en0)
Sep 28 00:01:24 ServerX named[362]: opensocket_f: bind([0.0.0.0].53): Address already in use
Sep 28 00:01:24 ServerX named[362]: opensocket_f: bind([0.0.0.0].53): [b:f66b08f55a]Address already in use[/b:f66b08f55a]
Sep 28 00:01:25 ServerX ConsoleMessage: Starting internet services
Sep 28 00:01:25 ServerX xinetd[404]: 404 {init_services} no services. Exiting…
Sep 28 00:01:30 ServerX ConsoleMessage: Starting Server Manager service
*******************************************questions:
1. dns issue. what does the log tell me is wrong? what do YOU tell me is wrong?
2. the xinetd[404] issue – what is that, i do see ppl in this forum often talk about thisSeptember 28, 2003 at 5:15 pm #356479mischa
ParticipantTHANKs for swift reply…
No, i hav not done any work with the starup items (neither in the machines system prefs, nor anywhere else)
about port53: – i have uncommented this:
[code:1:22b5072ebf] query-source address * port 53;
};[/code:1:22b5072ebf]
because i am behind my (netgear) routeris there anything i should do in startup items (i suspect that may be different from system prefs)?
strangly enough, when the server is started like in the above, commanding “killall named” only returns “No matching processes were found”….
so i still don’t know how to get dns up and running correctly…
note: DNS state in Server Settings says “Indeterminate dns state”.[quote:22b5072ebf=”MacTroll”]You already have an instance of the DNS server running, so when you try to launch it a second time it won’t go. Or at least you already have a service listening on port 53, which may or may not be a dns service.
[code:1:22b5072ebf]sudo killall named[/code:1:22b5072ebf]
will take care of that if you want. Although this seems to be happening at startup. So I wonder if you have done any work with the StartupItems?Joel[/code][/quote:22b5072ebf]
October 4, 2003 at 11:48 pm #356526mischa
ParticipantTHANK you – i commented that port54 line back.
DNS now starts without errors, but:
server settings says in overview:
1. zones allocated – 0 (zero)
2. Server is loading config: Off
3. Serrver is priming: Off
Query Logging is: Off
DNS Version: Not available
Start Time: Not availableIn system log after startup:
Oct 5 00:47:31 ServerX named[371]: starting (/etc/named.conf). named 8.3.4-REL Tue Nov 19 03:31:14 PST 2002 root@sting:/private/var/tmp/bind/bind-13.obj~7/bin/named
Oct 5 00:47:32 ServerX named[371]: /etc/named.conf:56: syntax error near zone
Oct 5 00:47:32 ServerX named[371]: master zone “localhost” (IN) loaded (serial 42)
Oct 5 00:47:32 ServerX named[371]: master zone “0.0.127.in-addr.arpa” (IN) loaded (serial 1997022700)
Oct 5 00:47:32 ServerX named[371]: master zone “hammar.mine.nu” (IN) loaded (serial 10)
Oct 5 00:47:32 ServerX named[371]: master zone “0.0.10.in-addr.arpa” (IN) loaded (serial 1)
Oct 5 00:47:32 ServerX named[371]: listening on [127.0.0.1].53 (lo0)
Oct 5 00:47:32 ServerX named[371]: listening on [10.0.0.2].53 (en0)
Oct 5 00:47:32 ServerX named[371]: Forwarding source address is [0.0.0.0].49153
Oct 5 00:47:32 ServerX named[371]: Ready to answer queries.
Oct 5 00:47:32 ServerX named[371]: sysquery: nlookup error on ?
Oct 5 01:17:32 ServerX named[371]: USAGE 1065309452 1065307652 CPU=0.05u/0s CHILDCPU=0u/0s
Oct 5 01:17:32 ServerX named[371]: NSTATS 1065309452 1065307652
Oct 5 01:17:32 ServerX named[371]: XSTATS 1065309452 1065307652 RR=0 RNXD=0 RFwdR=0 RDupR=0 RFail=0 RFErr=0 RErr=0 RAXFR=0 RLame=0 ROpts=0 SSysQ=0 SAns=0 SFwdQ=0 SDupQ=0 SErr=0 RQ=0 RIQ=0 RFwdQ=0 RDupQ=0 RTCP=0 SFwdR=0 SFail=0 SFErr=0 SNaAns=0 SNXD=0 RUQ=0 RURQ=0 RUXFR=0 RUUpd=0i only included things pertaining to “named”
why is this soooooo hard? =)
here is the named.conf: (this will be quite long…)
*****************************
// Sample named.conf file for BIND 8.2, included with Mac OS X and
// Mac OS X Server.
//
// [CAUTION: Users should be aware that the incorrect configuration of DNS
// settings can result in serious system issues. It is recommended that only
// experienced users manipulate these settings.// Declares control channels to be used by the rndc utility.
//
// This must be enabled on Mac OS X Server for Server Status to provide valid
// information! (Remove the leading slashes to enable.)
//
// **** STUFF YOU MIGHT NEED TO ENABLE ****
// mischa: jag tog bort ner till “It is recommended”
controls {
unix “/var/run/ndc” perm 0600 owner 0 group 0;
};
// It is recommended that 127.0.0.1 be the only address used.
// This also allows non-privileged users on the local host to manage
// your name server.// Controls global server configuration options and sets defaults
// for other statements
options {
directory “/var/named”;
notify yes;
statistics-interval 30;
version “Sorry, this information is not available. Mi.”;// **** STUFF YOU NEED TO CHANGE ****
/*
* Replace the 2 “ip_addr” values in the forwarders directive
* with the dotted-decimal IP addresses of the DNS server
* provided by your ISP. (example: 192.168.1.2)
*mischa: satte dit jonys nameservrar
* If you do not have a NAT gateway or router, comment out the
* following line by prepending “//” <no quotes> mischa: from isp
forwarders { 172.17.254.1; 62.13.60.5; };/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default. Mischa: tog bort dem.
*/
// query-source address * port 53;
// };// These entries are not specific to any zone
// They are required by any DNS serverzone “.” in {
type hint;
file “named.ca”;
};zone “localhost” IN {
type master;
file “localhost.zone”;
allow-update { none; };
};zone “0.0.127.in-addr.arpa” IN {
type master;
file “named.local”;
allow-update { none; };
};//
// The following entries are where your zone information is entered
//// **** STUFF YOU MIGHT NEED TO CHANGE ****
// This file contains the host names and their corresponding IP addresses.
//
// Feel free to change “example.com” to whatever domain name you are using
// behind your NAT. (Don’t forget to change the names in both database files!)zone “hammar.mine.nu” in {
type master;
file “db.hammar.mine.nu”;
};// This file contains IP addresses and their corresponding reverse lookup.
zone “0.0.10.in-addr.arpa” in {
type master;
file “db.10.0.0”;
};
************************************************if you can figure this out, how can i compensate you ?????
send you a mac g5 ? =)regards
October 5, 2003 at 12:02 am #356527mischa
Participantoh yes – i must add: i got this from dig:
dig 10.0.0.2 gave:
; <<>> DiG 8.3 <<>> 10.0.0.2
;; res options: init recurs defnam dnsrch
;; got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 2
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUERY SECTION:
;; 10.0.0.2, type = A, class = IN;; Total query time: 50 msec
;; FROM: mischasPB.local. to SERVER: default — 172.17.254.1
;; WHEN: Sun Oct 5 02:00:21 2003
;; MSG SIZE sent: 26 rcvd: 26man – all greek to me…
October 5, 2003 at 12:04 am #356528mischa
Participantand dig -x gave:
; <<>> DiG 8.3 <<>> -x
;; res options: init recurs defnam dnsrch
;; got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 2
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUERY SECTION:
;; 2.0.0.10.in-addr.arpa, type = ANY, class = IN;; AUTHORITY SECTION:
10.in-addr.arpa. 1h44m27s IN SOA prisoner.iana.org. hostmaster.root-servers.org. (
2002040800 ; serial
30M ; refresh
15M ; retry
1W ; expiry
1W ) ; minimum;; Total query time: 67 msec
;; FROM: mischasPB.local. to SERVER: default — 172.17.254.1
;; WHEN: Sun Oct 5 02:03:11 2003
;; MSG SIZE sent: 39 rcvd: 116 -
AuthorPosts
- You must be logged in to reply to this topic.
Comments are closed