You are not logged in.
once agin Im here...
after two days of trying to make my local DNS work, I decide to ask here.
All I want to do is get an website located in "/opt/lampp/htdocs" on server by typing its "name" eg. "www.mygreatsite.org"
www site located on servers web server is working when you issue "localhost" in web browser on server.
Im using bind DNS software...
bind configs:
/etc/named.conf
# cat /etc/named.conf
//
// /etc/named.conf
//
options {
directory "/var/named";
pid-file "/var/run/named/named.pid";
auth-nxdomain yes;
datasize default;
// Uncomment these to enable IPv6 connections support
// IPv4 will still work:
// listen-on-v6 { any; };
// Add this for no IPv4:
// listen-on { none; };
// Default security settings.
allow-recursion { 127.0.0.1; };
allow-transfer { none; };
allow-update { none; };
version none;
hostname none;
server-id none;
# recursion yes;
};
zone "localhost" IN {
type master;
file "localhost.zone";
allow-transfer { any; };
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "127.0.0.zone";
allow-transfer { any; };
};
zone "." IN {
type hint;
file "root.hint";
};
zone "mmanco.org" IN {
type master;
file "mmanco.org.zone";
// recursion yes;
// masters {
// 192.168.1.100;
// };
// allow-query { any; };
allow-transfer { any; };
};
logging {
channel xfer-log {
file "/var/log/named.log";
print-category yes;
print-severity yes;
print-time yes;
severity info;
};
category xfer-in { xfer-log; };
category xfer-out { xfer-log; };
category notify { xfer-log; };
};zone file:
/var/named/mmanco.org.zone
# cat /var/named/mmanco.org.zone
@ IN SOA server.mmanco.org tepo.server.mmanco.org. (
2002030601 ; serial
21600
1800
604800
900 )
IN NS server.mmanco.org.
localhost IN A 127.0.0.1
mmanco.org. IN A 192.168.0.10on client side:
/etc/resolv.conf
# cat /etc/resolv.conf
# Generated by NetworkManager
domain satronet.sk
search satronet.sk
#nameserver 192.168.0.10
nameserver 217.144.16.196
nameserver 192.168.0.1EDIT:
digs client output:
dig @192.168.0.10 mmanco.org
; <<>> DiG 9.7.1-P2 <<>> @192.168.0.10 mmanco.org
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 19928
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; WARNING: recursion requested but not available
;; QUESTION SECTION:
;mmanco.org. IN A
;; Query time: 1 msec
;; SERVER: 192.168.0.10#53(192.168.0.10)
;; WHEN: Sat Nov 20 19:42:03 2010
;; MSG SIZE rcvd: 28that's it!
I'll be thankful for any answer!
Last edited by greengold (2010-11-20 18:48:02)
Offline
Run named in debug/foreground mode and see what it says when you run the dig test:
named -gAre you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
# named -g
21-Nov-2010 00:13:30.374 starting BIND 9.7.2-P2 -g
21-Nov-2010 00:13:30.374 built with '--prefix=/usr' '--sysconfdir=/etc' '--localstatedir=/var' '--with-libtool' '--enable-shared' '--disable-threads' '--with-openssl=yes' '--disable-linux-caps' '--without-libxml2' 'CFLAGS=-march=i686 -mtune=generic -O2 -pipe' 'LDFLAGS=-Wl,--hash-style=gnu -Wl,--as-needed' 'CXXFLAGS=-march=i686 -mtune=generic -O2 -pipe'
21-Nov-2010 00:13:30.374 using up to 4096 sockets
21-Nov-2010 00:13:30.386 loading configuration from '/etc/named.conf'
21-Nov-2010 00:13:30.387 reading built-in trusted keys from file '/etc/bind.keys'
21-Nov-2010 00:13:30.388 using default UDP/IPv4 port range: [1024, 65535]
21-Nov-2010 00:13:30.388 using default UDP/IPv6 port range: [1024, 65535]
21-Nov-2010 00:13:30.393 listening on IPv4 interface lo, 127.0.0.1#53
21-Nov-2010 00:13:30.393 listening on IPv4 interface eth0, 192.168.0.10#53
21-Nov-2010 00:13:30.394 generating session key for dynamic DNS
21-Nov-2010 00:13:30.399 set up managed keys zone for view _default, file 'managed-keys.bind'
21-Nov-2010 00:13:30.400 automatic empty zone: 0.IN-ADDR.ARPA
21-Nov-2010 00:13:30.400 automatic empty zone: 127.IN-ADDR.ARPA
21-Nov-2010 00:13:30.400 automatic empty zone: 254.169.IN-ADDR.ARPA
21-Nov-2010 00:13:30.400 automatic empty zone: 2.0.192.IN-ADDR.ARPA
21-Nov-2010 00:13:30.400 automatic empty zone: 100.51.198.IN-ADDR.ARPA
21-Nov-2010 00:13:30.400 automatic empty zone: 113.0.203.IN-ADDR.ARPA
21-Nov-2010 00:13:30.400 automatic empty zone: 255.255.255.255.IN-ADDR.ARPA
21-Nov-2010 00:13:30.400 automatic empty zone: 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA
21-Nov-2010 00:13:30.400 automatic empty zone: 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA
21-Nov-2010 00:13:30.400 automatic empty zone: D.F.IP6.ARPA
21-Nov-2010 00:13:30.400 automatic empty zone: 8.E.F.IP6.ARPA
21-Nov-2010 00:13:30.400 automatic empty zone: 9.E.F.IP6.ARPA
21-Nov-2010 00:13:30.400 automatic empty zone: A.E.F.IP6.ARPA
21-Nov-2010 00:13:30.400 automatic empty zone: B.E.F.IP6.ARPA
21-Nov-2010 00:13:30.400 automatic empty zone: 8.B.D.0.1.0.0.2.IP6.ARPA
21-Nov-2010 00:13:30.404 command channel listening on 127.0.0.1#953
21-Nov-2010 00:13:30.405 command channel listening on ::1#953
21-Nov-2010 00:13:30.405 ignoring config file logging statement due to -g option
21-Nov-2010 00:13:30.407 zone 0.0.127.in-addr.arpa/IN: loaded serial 42
21-Nov-2010 00:13:30.411 zone localhost/IN: loaded serial 42
21-Nov-2010 00:13:30.411 mmanco.org.zone:1: no TTL specified; using SOA MINTTL instead
21-Nov-2010 00:13:30.411 zone mmanco.org/IN: has no NS records
21-Nov-2010 00:13:30.411 zone mmanco.org/IN: not loaded due to errors.
21-Nov-2010 00:13:30.411 managed-keys-zone ./IN: loading from master file managed-keys.bind failed: file not found
21-Nov-2010 00:13:30.412 managed-keys-zone ./IN: loaded serial 0
21-Nov-2010 00:13:30.413 runningso I add "NS server.mmanco.org." to zone file like this:
@ IN SOA server.mmanco.org tepo.server.mmanco.org. (
2002030601 ; serial
21600
1800
604800
900 )
IN NS server.mmanco.org.
NS server.mmanco.org.
localhost IN A 127.0.0.1
mmanco.org. IN A 192.168.0.10but result is the same...
Offline
What about changing the 'allow-recursion' directive in the options section to something like
allow-recursion { any; };Offline
then named -g is still saying
21-Nov-2010 00:34:28.723 zone localhost/IN: loaded serial 42
21-Nov-2010 00:34:28.725 mmanco.org.zone:1: no TTL specified; using SOA MINTTL instead
21-Nov-2010 00:34:28.725 zone mmanco.org/IN: has no NS records
21-Nov-2010 00:34:28.725 zone mmanco.org/IN: not loaded due to errors.Last edited by greengold (2010-11-20 22:39:46)
Offline
Well... it says right there what's wrong. My local one looks like this:
$TTL 3600
@ IN SOA ns1.mydomain. root.mydomain. (
20101124 ; Serial
3600 ; Refresh
900 ; Retry
3600000 ; Expire
3600 ) ; Minimum
@ IN NS ns1.mydomain.
; Machine Names
gertrud IN A 10.0.0.1
kremlonzwei IN A 10.0.0.2
ingrid IN A 10.0.0.3
xbmc IN A 10.0.0.4
; Aliases
s IN CNAME gertrud
ns1 IN CNAME gertrud
g IN CNAME kremlonzwei
t IN CNAME ingridRTFM or GTFO
hax0r.se
Offline
i have change it to:
$TTL 86400
@ IN SOA server.mmanco.org tepo.server.mmanco.org. (
2002030601 ; serial
21600
1800
604800
900 )
IN NS server.mmanco.org.
server IN A 127.0.0.1
server IN A 192.168.0.10
@ IN A 192.168.0.10and its working now!
just.. can you explain me why it is not working without "server IN A 192.168.0.10" -this line?
thanks for not linking me to google (; I
Offline
I have been wrong its, working, I just badly commented that line
Offline