tolong liatin step yang salah pada konfigurasi DNS

Diskusi tentang Ubuntu Server baik webserver, database server, samba server dan service lainnya serta jaringan menggunakan Sistem Operasi Ubuntu.
User avatar
kipotlea
Posts: 30
Joined: 02 Nov 2010, 20:25
Location: Bandung
Contact:

errorr

Postby kipotlea » 08 Nov 2010, 11:28

mas, klw pas nge restart bind 9 nya muncul kayak gini knp ya?


Starting domain name service... bind9 chmod: changing permissions of `/var/run/named': Operation not permitted
kipot@kipot-Aspire-4810T:/var/cache/bind$ /etc/init.d/networking restart
* /etc/network/options still exists and it will be IGNORED! Read README.Debian of netbase.
* Reconfiguring network interfaces... ifdown: failed to open statefile /var/run/network/ifstate: Permission denied
ifup: failed to open statefile /var/run/network/ifstate: Permission denied
User avatar
thrvers
Posts: 4458
Joined: 01 Jan 2010, 13:28
Location: Jombang, Indonesia
Contact:

Re: errorr

Postby thrvers » 08 Nov 2010, 11:31

'
...Permission denied

biasanya harus pakai root-mode :D
$ sudo /etc/init.d/.....

CMIIW
User avatar
kipotlea
Posts: 30
Joined: 02 Nov 2010, 20:25
Location: Bandung
Contact:

Re: errorr

Postby kipotlea » 08 Nov 2010, 12:41

skipot@kipot-Aspire-4810T:~$ sudo /etc/init.d/bind9 restart
[sudo] password for kipot:
* Stopping domain name service... bind9 rndc: connect failed: 127.0.0.1#953: connection refused
[ OK ]
* Starting domain name service... bind9 [fail]
kipot@kipot-Aspire-4810T:~$
User avatar
MasDjo
Posts: 1260
Joined: 03 Jan 2010, 17:38
Location: Bayuangga City
Contact:

Re: errorr

Postby MasDjo » 08 Nov 2010, 14:04

Coba cek /etc/hosts dan /etc/resolv.conf, misal punya saya :
/etc/hosts

Code: Select all

127.0.0.1       localhost
192.168.0.100    serversaya1 dns.bluesky.net smtp.dns.bluesky.net proxy.dns.bluesky.net

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts


/etc/resolv.conf

Code: Select all

search dns.bluesky.net
nameserver 192.168.0.100
nameserver 127.0.0.1


Coba teliti lagi step by step tutorial di Ubuntu Server All in One pada BAB INSTALL DAN SETING PADA DNS SERVER MENGGUNAKAN BIND9 ...seharusnya bisa jalan :)
User avatar
blackshirt
Posts: 2336
Joined: 02 Jan 2010, 17:00
Location: Solo dan Kebumen
Contact:

Re: errorr

Postby blackshirt » 08 Nov 2010, 14:39

dari FAQ ISC bind 9 dns server
I get "rndc: connect failed: connection refused" when I try to run rndc.

This is usually a configuration error.

First ensure that named is running and no errors are being reported at startup (/var/log/messages or equivalent). Running "named -g " from a title can help at this point.

Secondly ensure that named is configured to use rndc either by "rndc-confgen -a", rndc-confgen or manually. The Administrators Reference manual has details on how to do this.

Old versions of rndc-confgen used localhost rather than 127.0.0.1 in /etc/rndc.conf for the default server. Update /etc/rndc.conf if necessary so that the default server listed in /etc/rndc.conf matches the addresses used in named.conf. "localhost" has two address (127.0.0.1 and ::1).

If you use "rndc-confgen -a" and named is running with -t or -u ensure that /etc/rndc.conf has the correct ownership and that a copy is in the chroot area. You can do this by re-running "rndc-confgen -a" with appropriate -t and -u arguments.


jadi check konfignya terlebih dahulu
User avatar
kipotlea
Posts: 30
Joined: 02 Nov 2010, 20:25
Location: Bandung
Contact:

Re: errorr

Postby kipotlea » 09 Nov 2010, 15:35

MasDjo wrote:Coba cek /etc/hosts dan /etc/resolv.conf, misal punya saya :
/etc/hosts

Code: Select all

127.0.0.1       localhost
192.168.0.100    serversaya1 dns.bluesky.net smtp.dns.bluesky.net proxy.dns.bluesky.net

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts


/etc/resolv.conf

Code: Select all

search dns.bluesky.net
nameserver 192.168.0.100
nameserver 127.0.0.1


Coba teliti lagi step by step tutorial di Ubuntu Server All in One pada BAB INSTALL DAN SETING PADA DNS SERVER MENGGUNAKAN BIND9 ...seharusnya bisa jalan :)


mas, saya udah nyoba .. terus pas saya dig kok tetap gak jalan ya.????
ni hasil dig nya :
root@kipot-Aspire-4810T:/home/kipot# dig 613090108.com

; > DiG 9.7.1-P2 > 613090108.com
;; global options: +cmd
;; connection timed out; no servers could be reached
root@kipot-Aspire-4810T:/home/kipot#
User avatar
MasDjo
Posts: 1260
Joined: 03 Jan 2010, 17:38
Location: Bayuangga City
Contact:

Re: errorr

Postby MasDjo » 09 Nov 2010, 16:18

Itu server bind9 sudah bisa jalan belum :

sudo service bind9 restart
User avatar
kipotlea
Posts: 30
Joined: 02 Nov 2010, 20:25
Location: Bandung
Contact:

tolong liatin step yang salah pada konfigurasi DNS

Postby kipotlea » 09 Nov 2010, 16:23

agan2, ni saya mau konfigurasi dns server. tapi masih belum berhasil. kayaknya masih ada yang salah. saya mau minta tolong liatin step2 saya apa ada yang salah. saya mau buat DNS SERVER 613090108.com dari IP address 192.168.20.3.
ini step2nya:

1./etc/network/interfaces
======================
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 192.168.20.3
netmask 255.255.255.0
gateway 192.168.20.3
======================


2. /etc/bind/named.conf.local
========================
//
// Do any local configuration here
//

// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";

zone "613090108.com"{
type master;
file "/etc/bind/db.613090108.com";
};

zone �20.168.192.in-addr.arpa� {
type master;
file �/etc/bind.db.192�;
};
========================



3. /etc/named.conf.options
========================
options {
directory "/var/cache/bind";

// If there is a firewall between you and nameservers you want
// to talk to, you may need to fix the firewall to allow multiple
// ports to talk. See http://www.kb.cert.org/vuls/id/800113

// If your ISP provided one or more IP addresses for stable
// nameservers, you probably want to use them as forwarders.
// Uncomment the following block, and insert the addresses replacing
// the all-0's placeholder.

forwarders {
192.168.20.3;
};

auth-nxdomain no; # conform to RFC1035
listen-on-v6 { any; };
};
==========================



4. /etc/bind/db.613090108.com


==========================
;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA 613090108.com. root.613090108.com. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS 613090108.com.
IN A 192.168.20.3
www IN A 192.168.20.3
ftp IN CNAME aep.com
mail IN A 192.168.20.3

==========================




5. /etc/bind/db.192
==========================
; BIND reverse data file for local loopback interface
;
$TTL 604800
@ IN SOA localhost. root.localhost. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;

IN NS 613090108.com.
2 IN A 613090108.com.
2 IN PTR http://www.613090108.com.
2 IN PTR mail.613090108.com
==========================



6. /etc/resolv.conf
==========================
domain 613090108.com
search 613090108.com
nameserver 192.168.20.3
==========================




7. /etc/host

==========================
10.40.117.110 kipot-Aspire-4810T # Added by NetworkManager
127.0.0.1 localhost.localdomain localhost
::1 kipot-Aspire-4810T localhost6.localdomain6 localhost6
192.168.20.3 613090108.com

==========================





8./etc/network/options

==========================
ip_fordward = yes
spoofprotect = yes
syncookies = no
==========================





****output setelah ping 613090108.com***
==========================
4 bytes from 613090108.com (192.168.20.3): icmp_req=1 ttl=64 time=0.044 ms
64 bytes from 613090108.com (192.168.20.3): icmp_req=2 ttl=64 time=0.021 ms
64 bytes from 613090108.com (192.168.20.3): icmp_req=3 ttl=64 time=0.031 ms
64 bytes from 613090108.com (192.168.20.3): icmp_req=4 ttl=64 time=0.031 ms
64 bytes from 613090108.com (192.168.20.3): icmp_req=5 ttl=64 time=0.027 ms
64 bytes from 613090108.com (192.168.20.3): icmp_req=6 ttl=64 time=0.040 ms
64 bytes from 613090108.com (192.168.20.3): icmp_req=7 ttl=64 time=0.040 ms
64 bytes from 613090108.com (192.168.20.3): icmp_req=8 ttl=64 time=0.030 ms
^C
--- 613090108.com ping statistics ---
8 packets transmitted, 8 received, 0% packet loss, time 6996ms
rtt min/avg/max/mdev = 0.021/0.033/0.044/0.007 ms
kipot@kipot-Aspire-4810T:~$
==========================




kok pas melakukan dig 613090108.com gak bisa ya?
outputnya kayak gini :
==========================
;; global options: +cmd
;; connection timed out; no servers could be reached
kipot@kipot-Aspire-4810T:~$
==========================
User avatar
kipotlea
Posts: 30
Joined: 02 Nov 2010, 20:25
Location: Bandung
Contact:

Re: errorr

Postby kipotlea » 09 Nov 2010, 16:28

User avatar
kipotlea
Posts: 30
Joined: 02 Nov 2010, 20:25
Location: Bandung
Contact:

Re: errorr

Postby kipotlea » 09 Nov 2010, 16:31

MasDjo wrote:Itu server bind9 sudah bisa jalan belum :

sudo service bind9 restart


blum jalan masih ada yang fail mas

ini outputnya:


* Stopping domain name service... bind9
rndc: connect failed: 127.0.0.1#953: connection refused [ OK ]

* Starting domain name service... bind9 [fail]
kipot@kipot-Aspire-4810T:~$
User avatar
MasDjo
Posts: 1260
Joined: 03 Jan 2010, 17:38
Location: Bayuangga City
Contact:

Re: errorr

Postby MasDjo » 09 Nov 2010, 18:30

@kipotlea,
Topik anda yg lama, saya gabung disini, judulnya lebih representatif.
Dan mohon jangan membuat trit baru sejenis, lebih baik dilanjutkan agar lebih nyambung .... ok :)
User avatar
syari
Posts: 2
Joined: 12 Nov 2012, 07:35
Location: semarang

Re: errorr

Postby syari » 12 Nov 2012, 07:50

maaf agan agan,, saya juga dapat problem yang sama,,tolong share solusinya dong para master.. :)
User avatar
sipelaut
Posts: 1963
Joined: 03 Jan 2010, 17:25
Location: madura-sampang
Contact:

Re: errorr

Postby sipelaut » 12 Nov 2012, 08:16

ntahh lah.... semenjak bind9 ada di ubuntu versi 9 sampek sekarang (kecuali hardy heron) ane bikin dns dari bind pasti ada aja erornya. pakek unbound aja masbro... lebih gampang ngonfignya

Return to “Ubuntu Server”

Who is online

Users browsing this forum: No registered users and 3 guests