sslug-teknik team mailing list archive
-
sslug-teknik team
-
Mailing list archive
-
Message #11002
Re: DNS problem
Her er mine filer ( frit efter Frank's HOWTO ) :
/etc/named.conf
// generated by named-bootconf.pl
options {
directory "/var/named";
// /* forward only; /* <-- try this option */
// /* insert 1-3 forwarders (IP adresses for nameservers to use) */
// forwarders {
// NNN.NNN.NNN.NNN;
// MMM.MMM.MMM.MMM;
// };
/*
* 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.
*/
// query-source address * port 53;
};
//
// a caching only nameserver config
//
zone "." {
type hint;
file "named.ca";
};
zone "localhost" {
type master;
file "named.local";
};
zone "127.in-addr.arpa" {
type master;
file "named.rev-local";
};
zone "hcshcs.dk" {
type master;
file "named.home";
};
zone "201.168.192.in-addr.arpa" {
type master;
file "named.rev-home";
};
/var/named/named.home
;
; Zone file for hcshcs.dk
;
; Mandatory minimum for a working domain
;
;@ IN SOA hcstux.hcshcs.dk. hostmaster.hcstux.hcshcs.dk. (
@ IN SOA hcstux.hcshcs.dk. hostmaster.hcstux.hcshcs.dk. (
1999071801 ; serial, todays date + todays serial #
28800 ; refresh, seconds
7200 ; retry, seconds
3600000 ; expire, seconds
86400 ) ; minimum, seconds
IN NS hcstux.hcshcs.dk.
; local mail is distributed on hcstux
IN MX 10 hcstux ; Primary Mail Exchanger
; diald* only added for use with "diald" :
dialdl IN A 192.168.201.254
dialdr IN A 192.168.201.253
hcstux IN A 192.168.201.103
; some aliases for my machine
mail IN CNAME hcstux
ns IN CNAME hcstux
www IN CNAME hcstux
ftp IN CNAME hcstux
;
; Extras
;
@ TXT "hcshcs.dk, your DNS"
; added some info on the second machine:
hcswin98 IN A 192.168.201.102
MX 10 mail
HINFO "Pentium 100" "win98+Linux"
TXT "workstation"
; a shortcut for sslug => sslug.hcshcs.dk :))
sslug IN A 192.38.71.98
/var/named/named.local
;
; BIND data file for local loopback interface
; ** trailing periods are important!!
;
@ IN SOA localhost. root.localhost. (
1999071801 ; Serial
604800 ; Refresh
86400 ; Retry
3600000 ; Expire
604800 ) ; Minimum
;
@ IN NS localhost.
@ IN A 127.0.0.1
;
loopback IN CNAME 127.0.0.1
/var/named/named.rev-home
;
; BIND reverse data file for 192.168.1.x / hcshcs.dk eth0 interface
;
@ IN SOA hcstux.hcshcs.dk. hostmaster.hcstux.hcshcs.dk. (
1999071801 ; serial, todays date + todays
serial#
28800 ; refresh, seconds
7200 ; retry, seconds
3600000 ; expire, seconds
86400 ) ; minimum, seconds
IN NS hcstux.hcshcs.dk.
;
;@ NS ns.hcshcs.dk.
103 IN PTR hcstux.hcshcs.dk.
102 IN PTR hcswin98.hcshcs.dk.
253 IN PTR dialdr.hcshcs.dk.
254 IN PTR dialdl.hcshcs.dk.
/var/named/named.rev-local
;
; BIND reverse data file for local loopback interface
;
@ IN SOA hcstux.no-domain.dk.
hostmaster.hcstux.no-domain.dk. (
1999071801 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Default TTL
;
IN NS hcstux.no-domain.dk.
1 IN PTR localhost.
Og her lige /etc/hosts
# /etc/hosts
# IP-addr. fully-qual.-domain-name" "alias"
#local :
127.0.0.1 localhost loopback
#
192.168.201.103 hcstux.hcshcs.dk hcstux
192.168.201.102 hcswin98.hcshcs.dk hcswin98
#
147.29.40.10 dialip.csc.dk
# some often used: (beware: IP numbers might change)
192.38.71.98 sslug.dk sslug sslug.net.home
---
End of it
Troels Arvin wrote:
> Hans Christian Studt wrote:
> > Efter at have configureret DNS får jeg meddelese om at default TTL ????
> Det gør ikke så meget.
>
> > Desuden sker følgende når jeg prøver 'nslookup' :
> >
> > *** Can't find server name for address 127.0.0.1: Non-existent
> Igen betyder det ikke så meget, for normalt vil 127.0.0.1 aldrig skulle
> slås op (er defineret i /etc/hosts).
>
> - Men lad os se din /etc/named.conf og filerne i /var/named (bortset fra
> named.ca; den kender vi godt).
>
> Din /etc/resolv.conf kunne også være interessant.
>
> --
> Greetings from Troels Arvin, Copenhagen, Denmark
> http://www.mdb.ku.dk/tarvin/
--
============================================
Hans Christian Studt Linux
Mobile : +45 20 41 51 63 RH6.0
Private : +45 48 79 79 89
Work : +45 36 14 54 14
E-mail : hcs@xxxxxx hcstudt@xxxxxxxx
============================================
Follow ups
References