Beranda > Tak Berkategori > KONFIGURASI DNS PADA FEDORA CORE 6

KONFIGURASI DNS PADA FEDORA CORE 6

Nih ada sumbangsih dari Ervan….
Dibawah ini adalah contoh konfigurasi DNS Server pada Fedora Core 6 (zod)
Dengan : domain ecs.com
address 192.168.100.1

# nano /etc/resolv.conf
search ecs.com
nameserver 192.168.100.1

# nano /etc/named.conf
options {
directory “/var/named/”;
allow-query {
127.0.0.1;
192.168.100.0/24;
};
allow-transfer {
192.168.100.1;
};
};

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; };
};

include “/etc/rndc.key”;

zone “ecs.com” IN {
type master;
file “/var/named/ecs.com.zone”;
allow-update { 192.168.100.1; };
};

zone “100.168.192.in-addr.arpa” IN {
type master;
file “/var/named/ecs.com.local”;
allow-update { 192.168.100.1; };
};

# nano /etc/named.rfc1912.zones

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; };
};

# nano /etc/named.caching-nameserver.conf

options {
listen-on port 53 { 127.0.0.1; };
listen-on-v6 port 53 { ::1; };
directory “/var/named”;
dump-file “/var/named/data/cache_dump.db”;
statistics-file “/var/named/data/named_stats.txt”;
memstatistics-file “/var/named/data/named_mem_stats.txt”;
query-source port 53;
query-source-v6 port 53;
allow-query { localhost; };
};
logging {
channel default_debug {
file “data/named.run”;
severity dynamic;
};
};
view localhost_resolver {
match-clients { localhost; };
match-destinations { localhost; };
recursion yes; };
include “/etc/named.rfc1912.zones”;
include “/etc/named.ecs.com.zones”;
};

# nano /etc/named.ecs.com.zones

zone “ecs.com” IN {
type master;
file “/var/named/ecs.com.zone”;
allow-update { 192.168.100.1; };
};

zone “100.168.192.in-addr.arpa” IN {
type master;
file “/var/named/ecs.com.local”;
allow-update { 192.168.100.1; };
};

# cp /etc/named.conf /var/named/chroot/etc/

# cp /etc/named.ecs.com.zones /var/named/chroot/etc/

# cp /var/named/named.local /var/named/ecs.com.local

# cp /var/named/localhost.zone /var/named/ecs.com.zone

# nano /var/named/ecs.com.zone
$TTL 86400
@ IN SOA ecs.com. root.ecs.com. (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum

IN NS ecs.com.
IN A 192.168.100.1
www IN CNAME ecs.com.

# nano /var/named/ecs.com.local
$TTL 86400
@ IN SOA ecs.com. root.ecs.com. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS ecs.com.
1 IN PTR ecs.com.

# cp /var/named/ecs.com.zone /var/named/chroot/var/named/

# cp /var/named/ecs.com.local /var/named/chroot/var/named/

# cp /etc/named.conf /var/named/chroot/etc/

# cp /etc/named.ecs.com.zones /var/named/chroot/etc/

# chown named:named /var/named

# chown named:named /var/named/chroot/

# chmod 775 /var/named/

# chmod 775 /var/named/ecs.com.zone

# chmod 775 /var/named/ecs.com.local

# service named start

# dig ecs.com

# nslookup ecs.com

# nslookup http://www.ecs.com

Kategori:Tak Berkategori
  1. 6 Juni 2007 pukul 12:29 pm

    wus banyak amir…

  2. bilal
    22 Januari 2008 pukul 5:52 am

    kl error ny kayak gini :

    zone localhost/IN: loaded serial 42
    zone 0.0.127.in-addr.arpa/IN: loaded serial 42
    dns_master_load: /var/named/ecs.org.zone:12: http://www.ecs.org: CNAME and other data
    zone ecs.org/IN: loading master file /var/named/ecs.org.zone: CNAME and other data
    _default/ecs.org/IN: CNAME and other data
    zone 1.90.90.in-addr.arpa/IN: loaded serial 1997022700

    salah ny ad d mana ni… please..

    newbie

  3. Mr Takur
    22 Januari 2008 pukul 8:11 am

    ajai…ajai…tumbar miri jahe nech

    tolong nanti mikrotik dibahas disatu rubrik tersendiri yach…….

    makaciiiihh

    ajai…ajai…

  4. bilal
    23 Januari 2008 pukul 12:50 am

    kok mikrotik sih…

    dah jelas DNS server

  5. dfg
    16 Maret 2008 pukul 9:03 am

    Nih ada sumbangsih dari Ervan….
    Dibawah ini adalah contoh konfigurasi DNS Server pada Fedora Core 6 (zod)
    Dengan : domain ecs.com
    address 192.168.100.1

    # nano /etc/resolv.conf
    search ecs.com
    nameserver 192.168.100.1

    # nano /etc/named.conf
    options {
    directory “/var/named/”;
    allow-query {
    127.0.0.1;
    192.168.100.0/24;
    };
    allow-transfer {
    192.168.100.1;
    };
    };

    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; };
    };

    include “/etc/rndc.key”;

    zone “ecs.com” IN {
    type master;
    file “/var/named/ecs.com.zone”;
    allow-update { 192.168.100.1; };
    };

    zone “100.168.192.in-addr.arpa” IN {
    type master;
    file “/var/named/ecs.com.local”;
    allow-update { 192.168.100.1; };
    };

    # nano /etc/named.rfc1912.zones

    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; };
    };

    # nano /etc/named.caching-nameserver.conf

    options {
    listen-on port 53 { 127.0.0.1; };
    listen-on-v6 port 53 { ::1; };
    directory “/var/named”;
    dump-file “/var/named/data/cache_dump.db”;
    statistics-file “/var/named/data/named_stats.txt”;
    memstatistics-file “/var/named/data/named_mem_stats.txt”;
    query-source port 53;
    query-source-v6 port 53;
    allow-query { localhost; };
    };
    logging {
    channel default_debug {
    file “data/named.run”;
    severity dynamic;
    };
    };
    view localhost_resolver {
    match-clients { localhost; };
    match-destinations { localhost; };
    recursion yes; };
    include “/etc/named.rfc1912.zones”;
    include “/etc/named.ecs.com.zones”;
    };

    # nano /etc/named.ecs.com.zones

    zone “ecs.com” IN {
    type master;
    file “/var/named/ecs.com.zone”;
    allow-update { 192.168.100.1; };
    };

    zone “100.168.192.in-addr.arpa” IN {
    type master;
    file “/var/named/ecs.com.local”;
    allow-update { 192.168.100.1; };
    };

    # cp /etc/named.conf /var/named/chroot/etc/

    # cp /etc/named.ecs.com.zones /var/named/chroot/etc/

    # cp /var/named/named.local /var/named/ecs.com.local

    # cp /var/named/localhost.zone /var/named/ecs.com.zone

    # nano /var/named/ecs.com.zone
    $TTL 86400
    @ IN SOA ecs.com. root.ecs.com. (
    42 ; serial (d. adams)
    3H ; refresh
    15M ; retry
    1W ; expiry
    1D ) ; minimum

    IN NS ecs.com.
    IN A 192.168.100.1
    www IN CNAME ecs.com.

    # nano /var/named/ecs.com.local
    $TTL 86400
    @ IN SOA ecs.com. root.ecs.com. (
    1997022700 ; Serial
    28800 ; Refresh
    14400 ; Retry
    3600000 ; Expire
    86400 ) ; Minimum
    IN NS ecs.com.
    1 IN PTR ecs.com.

    # cp /var/named/ecs.com.zone /var/named/chroot/var/named/

    # cp /var/named/ecs.com.local /var/named/chroot/var/named/

    # cp /etc/named.conf /var/named/chroot/etc/

    # cp /etc/named.ecs.com.zones /var/named/chroot/etc/

    # chown named:named /var/named

    # chown named:named /var/named/chroot/

    # chmod 775 /var/named/

    # chmod 775 /var/named/ecs.com.zone

    # chmod 775 /var/named/ecs.com.local

    # service named start

    # dig ecs.com

  6. desi
    14 Oktober 2008 pukul 1:06 am

    tolong tampilin rubik tentang para pemain arema

  7. 3 Maret 2009 pukul 3:28 am

    mas kalo misalnya errornya kaya gini ?
    Locating /var/named/chroot//etc/named.conf failed:
    ???

  1. No trackbacks yet.

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s

%d blogger menyukai ini: