Pozdrav,
Nedavno sam se susreo sa jednim problemom oko bind9. Naime, imam problema sa dodavanjem adrese…
Dakle potrebno je da dodam www.zenica.ba sa IP 195.222.48.227
Šta sam radio?
Prco sam u /etc/named.conf dodao ovo:
zone “zenica.ba” in {
notify no;
type master;
file “named.zenica.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.zenica.ba koja izgleda ovako:
@ IN SOA ns.zenica.ba. root.zenica.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.48.227
linuxhost A 195.222.48.227
mail A 195.222.48.227
www A 195.222.48.227
dns CNAME www
Dakle trebalo bi to da je OK.
Zatim sam u apacheu, dakle /etc/httpd/gttpd.conf dodao ovo:
VirtualHost 195.222.48.227:80>
ServerAdmin gomez@lugze.org
DocumentRoot /home/zenica/public_html
ServerName ns.zenica.ba
ErrorLog /home/zenica/public_html/log/error
CustomLog /home/zenica/public_html/log/access
Eh kada sam to uradio onda sam u /etc/hosts ispod localhosta dodao ovo
127.0.0.1 localhost
195.222.48.227 ns.zenica.ba ns
i to je to…
Svakako trebam reci da ndc komanda nije podrzana ali named radi…
Eh kada ukucam nslookup www.zenica.ba dobijem:
linux:/etc # nslookup www.zenica.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.zenica.ba canonical name = ns.zenica.ba.
Name: ns.zenica.ba
Address: 195.222.48.227
a kada trazim po IP adresi dobijem ovo:
nslookup 195.222.48.227
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.222.195.in-addr.arpa.: NXDOMAIN
Sve u svemu kada ukucam u web browseru ispiše mi ovo:
An error occured while loading http://195.222.48.227:
Timeout on server
Timed out while waiting to connect to 195.222.48.227
a po adresi www.zenica.ba
An error occured while loading http://195.222.48.227:
Timeout on server
Timed out while waiting to connect to 195.222.48.227
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.48.227
search zenica.ba
ali iskreno receno nije bilo puno razlike… 8) :lol:
Ako mi neko ne pomogne ima da se :allco: pa cu onda da +racunar+
Molim vas pomozite u rjesavanju ovoga…
Savjet:
NIKADA NE PREUZIMAJTE NESTO STO JE NEKO DRUGI RAZVALIO/ISKONFIGURISAO!