Forums

Skip to content

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

Bind problems

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
5 posts • Page 1 of 1
Author
Message
silwerspawn
Apprentice
Apprentice
Posts: 183
Joined: Thu Feb 01, 2007 6:43 pm

Bind problems

  • Quote

Post by silwerspawn » Thu Feb 28, 2008 12:22 pm

I have installed Bind or Named as its called in gentoo.
I'm running a primary server. but i think there is something wrong.
when i run names-checkconfig it tells me to put a ";" in front of zone.

here is my /etc/bind/named.conf

Code: Select all

options {
  // Sets root dir, use full path to escape
  directory "/var/named";
  // Stats are your friend
  statistics-file "/var/named/named.stats";
  dump-file "/var/named/named.dump";
  zone-statistics yes;
  // Allow recrusive lookups
  allow-recursion { 127.0.0.1; 192.168.0.0/16; };
  // Allow transfers to these IP's
  allow-transfer { 192.168.0.0/16; };
  // notify the above IP's when a zone is updated
  notify yes;
  // Notify these other servers when a zone is updated
  //also-notify { 10.110.0.11; 10.120.0.11; };
  pid-file "/var/run/named/named.pid";
  // Generates more efficient zone transfers
	transfer-format many-answers;
  listen-on { any; };
};

// Include logging config file
include "/var/named/conf/logging.conf";
// Include to ACLs
include "/var/named/conf/acls.conf";

zone "frostdrake.tk" {
	type master;
	file "/var/named/frostdrake.tk.hosts";
	};
Here is the logging.conf file:

Code: Select all

logging {
  channel default_file { file "/var/log/named/default.log" versions 3 size 5m; severity dynamic; print-time yes; };
  channel general_file { file "/var/log/named/general.log" versions 3 size 5m; severity dynamic; print-time yes; };
  channel database_file { file "/var/log/named/database.log" versions 3 size 5m; severity dynamic; print-time yes; };
  channel security_file { file "/var/log/named/security.log" versions 3 size 5m; severity dynamic; print-time yes; };
  channel config_file { file "/var/log/named/config.log" versions 3 size 5m; severity dynamic; print-time yes; };
  channel resolver_file { file "/var/log/named/resolver.log" versions 3 size 5m; severity dynamic; print-time yes; };
  channel xfer-in_file { file "/var/log/named/xfer-in.log" versions 3 size 5m; severity dynamic; print-time yes; };
  channel xfer-out_file { file "/var/log/named/xfer-out.log" versions 3 size 5m; severity dynamic; print-time yes; };
  channel notify_file { file "/var/log/named/notify.log" versions 3 size 5m; severity dynamic; print-time yes; };
  channel client_file { file "/var/log/named/client.log" versions 3 size 5m; severity dynamic; print-time yes; };
  channel unmatched_file { file "/var/log/named/unmatched.log" versions 3 size 5m; severity dynamic; print-time yes; };
  channel queries_file { file "/var/log/named/queries.log" versions 3 size 5m; severity dynamic; print-time yes; };
  channel network_file { file "/var/log/named/network.log" versions 3 size 5m; severity dynamic; print-time yes; };
  channel update_file { file "/var/log/named/update.log" versions 3 size 5m; severity dynamic; print-time yes; };
  channel dispatch_file { file "/var/log/named/dispatch.log" versions 3 size 5m; severity dynamic; print-time yes; };
  channel dnssec_file { file "/var/log/named/dnssec.log" versions 3 size 5m; severity dynamic; print-time yes; };
  channel lame-servers_file { file "/var/log/named/lame-servers.log" versions 3 size 5m; severity dynamic; print-time yes; };
  category default { default_file; };
  category general { general_file; };
  category database { database_file; };
  category security { security_file; };
  category config { config_file; };
  category resolver { resolver_file; };
  category xfer-in { xfer-in_file; };
  category xfer-out { xfer-out_file; };
  category notify { notify_file; };
  category client { client_file; };
  category unmatched { unmatched_file; };
  category queries { queries_file; };
  category network { network_file; };
  category update { update_file; };
  category dispatch { dispatch_file; };
  category dnssec { dnssec_file; };
  category lame-servers { lame-servers_file; };
};
acls.conf:

Code: Select all

acl "frostdrake.tk-network" {
  10.0.0.0/8;
  192.168.0.0/24;
  127.0.0.1;
}
and at last the host file:

Code: Select all

$ttl 1h
frostdrake.tk.	IN	SOA	frostserver.frostdrake.tk. administrator.frostdrake.tk. (
			2008022801
			3H
			15M
			4W
			1D )
		IN	NS	frostserver.frostdrake.tk.
		IN	NS	ns1.gratisdns.dk
		IN	NS	ns2.gratisdns.dk
		IN	NS	ns3.gratisdns.dk
		IN	NS	ns4.gratisdns.dk
		IN	NS	ns5.gratisdns.dk
@		IN	A	80.162.69.178
*		IN	A	80.162.69.178
localhost	IN	A	127.0.0.1
frostdrake.tk.	IN	A	80.162.69.178
mail.frostdrake.tk.	IN	MX	10 frostdrake.tk
i hope some one can see where i have messed up, this is pretty frustrating.
Top
Ejunkie
n00b
n00b
Posts: 58
Joined: Fri Jan 07, 2005 10:32 pm
Location: 127.0.0.1

  • Quote

Post by Ejunkie » Thu Feb 28, 2008 1:43 pm

maybe its in the zone file he uses an . at the end of de domain name

http://gentoo-wiki.com/HOWTO_Setup_a_DN ... r_a_Domain


IN NS ns1.gratisdns.dk.
like this
// Amilo pi1536 // 1,6 Ghz // 1gb ram // ATI Mobility x1400 //gentoo 2007.0 // 2.6.22-gentoo-r9
Top
silwerspawn
Apprentice
Apprentice
Posts: 183
Joined: Thu Feb 01, 2007 6:43 pm

  • Quote

Post by silwerspawn » Thu Feb 28, 2008 2:34 pm

tried that. it did not help. still the same problem.
i still get the.
/etc/bind/named.conf:27: missing ';' before 'zone'.
Top
nobspangle
Veteran
Veteran
User avatar
Posts: 1318
Joined: Tue Mar 23, 2004 12:12 pm
Location: Manchester, UK

  • Quote

Post by nobspangle » Thu Feb 28, 2008 3:36 pm

I think you need an extra ; at the end of your acls.conf
Top
silwerspawn
Apprentice
Apprentice
Posts: 183
Joined: Thu Feb 01, 2007 6:43 pm

  • Quote

Post by silwerspawn » Thu Feb 28, 2008 4:22 pm

yes.. that was it.. thanks.. stupid i didn't see that :S
Top
Post Reply

5 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