Nedavno sam se susreo sa jednim problemom oko bind9. Naime, imam problema sa dodavanjem adrese...
Dakle potrebno je da dodam www.neki.ba sa IP 195.222.xx.xxx
Šta sam radio?
Prco sam u /etc/named.conf dodao ovo:
zone "neki.ba" in {
notify no;
type master;
file "named.neki.ba";
};
A već su postojale one tri zone localhost , 0.0.127.in-addr.arpa, root.hint
Svakako trebam da spomenem da localhost radi normalno...
Eh kada sam dodao tu zonu onda sam kreirao u /var/named datoteku po imenu named.neki.ba koja izgleda ovako:
@ IN SOA ns.neki.ba. root.neki.ba. (
2003071504 ; serial, todays date + todays serial #
8H ; refresh, seconds
2H ; retry, seconds
1W ; expire, seconds
1D ) ; minimum, seconds
NS ns ; Inet Address of name server
MX 10 mail ; Primary Mail Exchanger
localhost A 127.0.0.1
ns A 195.222.xx.xxx
linuxhost A 195.222.xx.xxx
mail A 195.222.xx.xxx
www A 195.222.xx.xxx
dns CNAME www
Dakle trebalo bi to da je OK.
Zatim sam u apacheu, dakle /etc/httpd/httpd.conf dodao ovo:
VirtualHost 195.222.48.227:80>
ServerAdmin [email protected]
DocumentRoot /home/neki/public_html
ServerName ns.neki.ba
# ErrorLog /home/neki/public_html/log/error
# CustomLog /home/neki/public_html/log/access
</VirtualHost>
Eh kada sam to uradio onda sam u /etc/hosts ispod localhosta dodao ovo
127.0.0.1 localhost
195.222.xx.xxx ns.neki.ba ns
i to je to...
Svakako trebam reci da ndc komanda nije podrzana ali named radi...
Eh kada ukucam nslookup www.neki.ba dobijem:
linux:/etc # nslookup www.neki.ba
Note: nslookup is deprecated and may be removed from future releases.
Consider using the `dig' or `host' programs instead. Run nslookup with
the `-sil[ent]' option to prevent this message from appearing.
Server: 195.222.48.133
Address: 195.222.48.133#53
Non-authoritative answer:
www.neki.ba canonical name = ns.neki.ba.
Name: ns.neki.ba
Address: 195.222.xx.xxx
a kada trazim po IP adresi dobijem ovo:
nslookup 195.222.xx.xxx
Note: nslookup is deprecated and may be removed from future releases.
Consider using the `dig' or `host' programs instead. Run nslookup with
the `-sil[ent]' option to prevent this message from appearing.
Server: 195.222.48.133
Address: 195.222.48.133#53
** server can't find 227.48.xxx.xx.in-addr.arpa.: NXDOMAIN
Sve u svemu kada ukucam u web browseru ispiše mi ovo:
An error occured while loading http://195.222.xx.xxx:
Timeout on server
Timed out while waiting to connect to 195.222.xx.xxx
a po adresi www.zenica.ba
An error occured while loading http://195.222.xx.xxx:
Timeout on server
Timed out while waiting to connect to 195.222.xx.xxx
Eh ima još nešto, zaboravio sam napisati šta imam u /etc/resolv.conf
Dakle resol.conf izgleda ovako:
ameserver 195.222.48.xxx
search nesto.ba
a ja sam bio dodao i ovo
nameserver 195.222.xx.xxx
search neki.ba
Međutim nije bilo puno razlike :)
I još me nešto interesuje...
Šta se desilo sa rc.config fajlom u /etc
Molim vas pomozite mi
May the penguin be with you!