Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

yester I edited dns zone file,then my domain can't be find

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
3 posts • Page 1 of 1
Author
Message
Debentoo_Gao
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 85
Joined: Fri Nov 21, 2003 2:28 am
Location: Shanghai,China
Contact:
Contact Debentoo_Gao
Website

yester I edited dns zone file,then my domain can't be find

  • Quote

Post by Debentoo_Gao » Sat Sep 09, 2006 3:30 am

1. my zone file:

Code: Select all

$TTL 86400
@ IN SOA ns1.gentoolinux.biz. root.myblue.ws. (
46 ; serial
28800 ; refresh
14400 ; retry
3600000 ; expire
86400 ; ttl
)

myblue.ws. 14400 IN NS ns1.gentoolinux.biz.
myblue.ws. 14400 IN NS ns2.gentoolinux.biz.
#ns1 14400 IN 38.99.2.86
#ns2 14400 IN 69.61.72.107
www 14400 IN A 69.61.72.107
ftp 14400 IN A 69.61.72.107
mail 14400 IN A 69.61.72.107
myblue.ws. IN A 69.61.72.107
Is it the two line of # cause the problem ?

2.my master named.conf:

Code: Select all

//
// named.conf for Red Hat caching-nameserver 
//

options {
	directory "/var/named";
	dump-file "/var/named/data/cache_dump.db";
        statistics-file "/var/named/data/named_stats.txt";
	/*
	 * 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 "localdomain" IN {
	type master;
	file "localdomain.zone";
	allow-update { none; };
};

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 "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" IN {
        type master;
	file "named.ip6.local";
	allow-update { none; };
};

zone "255.in-addr.arpa" IN {
	type master;
	file "named.broadcast";
	allow-update { none; };
};

zone "0.in-addr.arpa" IN {
	type master;
	file "named.zero";
	allow-update { none; };
};

zone "gentoolinux.biz" IN { 
type master;
file "/var/named/gentoolinux.biz.zone";
allow-update { none; };
};

zone "myblue.ws" IN {
type master;
file "/var/named/myblue.ws.zone";
allow-update { none; };
};

zone "imissu.info" IN {
type master;
file "/var/named/imissu.info.zone";
allow-update { none; };
};
include "/etc/rndc.key";
3.ÎÒµÄsalve named.confÎļþ£º

Code: Select all

options {
	directory "/var/bind";

	// uncomment the following lines to turn on DNS forwarding,
	// and change the forwarding ip address(es) :
	//forward first;
	//forwarders {
	//	123.123.123.123;
	//	123.123.123.123;
	//};

	listen-on-v6 { none; };
        listen-on { 127.0.0.1; };

	// to allow only specific hosts to use the DNS server:
	//allow-query {
	//	127.0.0.1;
	//};

	// if you have problems and are behind a firewall:
	//query-source address * port 53;
	pid-file "/var/run/named/named.pid";
};

// Briefly, a zone which has been declared delegation-only will be effectively
// limited to containing NS RRs for subdomains, but no actual data beyond its
// own apex (for example, its SOA RR and apex NS RRset). This can be used to
// filter out "wildcard" or "synthesized" data from NAT boxes or from
// authoritative name servers whose undelegated (in-zone) data is of no
// interest.
// See http://www.isc.org/products/BIND/delegation-only.html for more info

//zone "COM" { type delegation-only; };
//zone "NET" { type delegation-only; };

zone "." IN {
	type hint;
	file "named.ca";
};

zone "localhost" IN {
	type master;
	file "pri/localhost.zone";
	allow-update { none; };
	notify no;
};

zone "127.in-addr.arpa" IN {
	type master;
	file "pri/127.zone";
	allow-update { none; };
	notify no;
};

zone "gentoolinux.biz" IN {
type slave;
masters { 38.99.2.86; };
file "/var/named/gentoolinux.biz.zone";
};

zone "myblue.ws" IN {
type slave;
masters { 38.99.2.86; };
file "/var/named/myblue.ws.zone";
};

zone "imissu.info" IN {
type slave;
masters { 38.99.2.86; };
file "/var/named/imissu.info.zone";
};

include "/etc/bind/rndc.key";
4.my dig output:

Code: Select all

miyu@imissu /var/named $ dig www.myblue.ws

; <<>> DiG 9.3.2 <<>> www.myblue.ws
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 37203
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;www.myblue.ws.                 IN      A

;; Query time: 228 msec
;; SERVER: 38.99.2.86#53(38.99.2.86)
;; WHEN: Sat Sep  9 10:35:29 2006
;; MSG SIZE  rcvd: 31
Please help me with the strange problem,thanks a lot
More Love~~More Dream~~More Happiness

Free Your Mind~~Free Your Body~~Free Your Life

http://www.myblue.ws
Top
tobr
Guru
Guru
User avatar
Posts: 330
Joined: Mon May 29, 2006 7:28 pm

  • Quote

Post by tobr » Sat Sep 09, 2006 7:32 pm

Don't really understand your problem, but did you increase the serial number in your zone file (it's the 46) after commenting out the two ns entries? I'm no expert with bind, but this could cause problems. I also can't remember if '#' is a valid comment line in zone files. Try to remove the lines.
Perhaps you could further specify what's your problem.
Top
ce110ut
Apprentice
Apprentice
User avatar
Posts: 200
Joined: Fri Sep 27, 2002 12:27 am

  • Quote

Post by ce110ut » Sun Sep 10, 2006 2:10 am

what happens when you do this:

Code: Select all

 dig @localhost www.myblue.ws
Top
Post Reply

3 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic