기존에 도메인업체 네임서버를 쓰다가 이번에 제가 네임서버를 굴리게 됐
습니다. ns 하고 ns2 아이피 변경한지는 한 일주일 됐습니다
기존에 www.nicebsd.com 으로 지정되있던게 211.198.128.45 이고
이번에 바꾼게 61.32.211.35 입니다
nslookup 을 ns와 ns2로 한 결과 입니다
------------------------------------------------------------
[root@finkl root]# nslookup www.nicebsd.com ns.nicebsd.com
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: ns.nicebsd.com
Address: 61.32.211.35#53
Name: www.nicebsd.com Address: 61.32.211.35
--------------- 요건 ns에 nslookup 한거
[root@finkl root]# nslookup www.nicebsd.com ns2.nicebsd.com
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: ns2.nicebsd.com
Address: 61.32.211.36#53
Name: www.nicebsd.com Address: 61.32.211.35
--------------- 요건 ns2에 nslookup 한거
여기까진 정상 같습니다.
근데 dns서버를 지정 안해주고 nslookup 하면 이렇게 뜹니다
[root@finkl root]# nslookup www.nicebsd.com 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: 203.248.252.2
Address: 203.248.252.2#53
Non-authoritative answer:
Name: www.nicebsd.com Address:211.198.128.45
-----------------------------------
[root@finkl root]# nslookup www.nicebsd.com 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: 203.248.252.2
Address: 203.248.252.2#53
Name: www.nicebsd.com Address: 61.32.211.35
--- 열번중에 한두번은 이렇게 제대로 된거를 찾기도 합니다
TTL값때문에 그런가 보다 하기에는 변경한지 한 3일 넘었습니다 T.T
더 웃기는건 boa.nicebsd.com을 61.32.211.36으로 지정했습니다
----
[root@finkl root]# nslookup boa.nicebsd.com
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: 203.248.252.2
Address: 203.248.252.2#53
Name: boa.nicebsd.com
Address: 61.32.211.36
------------------------------------------------
잘 찾는거 같아 뿌듯했습니다만 ,
회사에서 쓰는 PC ( Win98 ) 에서 ping을 때리면
-----
C:WINDOWS>ping boa.nicebsd.com
Unknown host boa.nicebsd.com.
-----------------------------------
보시다 시피 보아가 없다고 배째라고 합니다
뿐만 아니라 회사에서는ping www.nicebsd.com 해보면
무조건 예전 IP인 211.198.128.45 로 ping을 쏴대고 있습니다
뭘 만져야 www.nicebsd.com 이 원래 IP인 61.32.211.35로 지정되게 할수 있을까요 ??
그리고 회사에서는 boa.nicebsd.com을 못 찾는 증상은 어찌해야 할까요 ??
아래는 제 named.conf 와 zone.nicebsd.com 입니다
----------- named.conf-------------------------------
[skuldfan@finkl etc]$ cat 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 "nicebsd.com" IN {
type master;
file "zone-nicebsd.com";
};
include "/etc/rndc.key";
-----------------------------------------------
---------zone-nicebsd.com----------------
[skuldfan@finkl named]$ cat zone-nicebsd.com
$TTL 1
@ IN SOA ns.nicebsd.com. root.nicebsd.com. (
1998122800 ;Serial
21600 ;Refresh
1800 ;Retry
21600 ;Expire
0) ;Minimum
IN NS ns.nicebsd.com.
IN NS ns2.nicebsd.com.
IN MX 10 mail.nicebsd.com.
IN A 61.32.211.35
ns IN A 61.32.211.35
ns2 IN A 61.32.211.36
mail IN A 61.32.211.35
www IN A 61.32.211.35
ftp IN A 61.32.211.35
telnet IN A 61.32.211.35
finkl IN A 61.32.211.35
boa IN A 61.32.211.36
[skuldfan@finkl named]$
----------------------------------------------------------------스팸 없는 곳에 살고 싶어오 ㅠ.ㅠ