[redhat 8 en bind 9] domein niet te pingen....

Pagina: 1
Acties:

  • DPLuS
  • Registratie: April 2000
  • Niet online
Ik ben een domein op aan het zetten op mijn pc, nl: easyspace.bogus
Ik wil dus ook dat ping een ip resolved als ik easyspace.bogus ping.
Maar #ping easyspace.bogus zegt:

code:
1
2
[root@dplus named]# ping easyspace.bogus    
ping: unknown host easyspace.bogus


Terwijl alle andere A-adressen in mijn zone-file wel werken:

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
[root@dplus named]# ping -c 1 www.easyspace.bogus
PING www.easyspace.bogus (62.111.22.83) from 62.111.22.83 : 56(84) bytes of data.
64 bytes from www.easyspace.bogus (62.111.22.83): icmp_seq=1 ttl=64 time=0.058 ms

--- www.easyspace.bogus ping statistics ---
1 packets transmitted, 1 received, 0% loss, time 0ms
rtt min/avg/max/mdev = 0.058/0.058/0.058/0.000 ms

[root@dplus named]# ping -c 1 ns2.easyspace.bogus
PING ns2.easyspace.bogus (192.168.0.1) from 192.168.0.1 : 56(84) bytes of data.
64 bytes from ns2.easyspace.bogus (192.168.0.1): icmp_seq=1 ttl=64 time=0.050 ms

--- ns2.easyspace.bogus ping statistics ---
1 packets transmitted, 1 received, 0% loss, time 0ms
rtt min/avg/max/mdev = 0.050/0.050/0.050/0.000 ms


Dit is mijn /etc/named.conf:

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
[root@dplus named]# cat /etc/named.conf               
// generated by named-bootconf.pl

options {
        directory "/var/named";
        /*
         * 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
// 
controls {
        inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
zone "." 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; };
};

zone "easyspace.bogus" IN {
        type master;
        file "easyspace.bogus";
        allow-update { none; };
};

zone "0.168.192.in-addr.arpa" IN {
        type master;
        file "192.168.0";
        allow-update { none; };
};

zone "22.111.62.in-addr.arpa" IN {
        type master;
        file "62.111.22";
        allow-update { none; };
};

include "/etc/rndc.key";


Dit zijn de zone-files:

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
[root@dplus named]# cat 192.168.0 
$TTL    86400
@       IN      SOA     easyspace.bogus. root.easyspace.bogus.  (
                                      1          ; Serial
                                      28800      ; Refresh
                                      14400      ; Retry
                                      3600000    ; Expire
                                      86400 )    ; Minimum

        IN      NS      ns1.easyspace.bogus.
        IN      NS      ns2.easyspace.bogus.

1       IN      PTR     ns2.easyspace.bogus.


[root@dplus named]# cat 62.111.22 
$TTL    86400
@       IN      SOA     easyspace.bogus. root.easyspace.bogus.  (
                                      1          ; Serial
                                      28800      ; Refresh
                                      14400      ; Retry
                                      3600000    ; Expire
                                      86400 )    ; Minimum

        IN      NS      ns1.easyspace.bogus.
        IN      NS      ns2.easyspace.bogus.

83      IN      PTR     ns1.easyspace.bogus.
83      IN      PTR     easyspace.bogus.
83      IN      PTR     www.easyspace.bogus.

[root@dplus named]# cat easyspace.bogus 
$TTL    86400
@       IN      SOA     easyspace.bogus. root.easyspace.bogus. (
                        1               ; serial (d. adams)
                        3H              ; refresh
                        15M             ; retry
                        1W              ; expiry
                        1D )            ; minimum

                NS      ns1.easypace.bogus.
                NS      ns2.easyspace.bogus.
                MX      10 easyspace.bogus.

localhost       A       127.0.0.1
easyspace.bogus A       62.111.22.83
ns1             A       62.111.22.83
ns2             A       192.168.0.1
www             A       62.111.22.83

[root@dplus named]# cat localhost.zone 
$TTL    86400
$ORIGIN localhost.
@                       1D IN SOA       @ root (
                                        42              ; serial (d. adams)
                                        3H              ; refresh
                                        15M             ; retry
                                        1W              ; expiry
                                        1D )            ; minimum

                        1D IN NS        @
                        1D IN A         127.0.0.1

[root@dplus named]# cat named.local 
$TTL    86400
@       IN      SOA     easyspace.bogus. root.easyspace.bogus.  (
                                      1          ; Serial
                                      28800      ; Refresh
                                      14400      ; Retry
                                      3600000    ; Expire
                                      86400 )    ; Minimum

        IN      NS      ns1.easyspace.bogus.
        IN      NS      ns2.easyspace.bogus.

1       IN      PTR     localhost.


Wat doe ik fout?

  • rvm
  • Registratie: November 2000
  • Niet online

rvm

Je hebt dit staan in de zonefile easyspace.bogus:
code:
1
2
easyspace.bogus A       62.111.22.83 
www             A       62.111.22.83


Moet zijn (punt achter bogus):
code:
1
2
easyspace.bogus. A       62.111.22.83 
www              A       62.111.22.83


Of misschien wel beter:
code:
1
2
@               A       62.111.22.83 
www             CNAME   easyspace.bogus.

  • DPLuS
  • Registratie: April 2000
  • Niet online
Inderdaad :)
Ik heb helemaal over die punt heen gekeken!
Ik had al vantevoren dat "@" moeten gebruiken.
Nu werkt 'ie prima!
Dankjewel...