LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-21-2009, 12:35 PM   #1
j.smith1981
Member
 
Registered: Feb 2009
Distribution: Mainly CentOS6.4 x64
Posts: 161

Rep: Reputation: 1
Exclamation Bind 9 on Fedora 10 massive problems dont know what to do.


Hi there, I have a live domain at:
jeremysmith.me.uk

Provided by: http://www.heartinternet.co.uk/

The thing is I am trying to setup bind so my domain points to my server but every single time, my heart internet account, when I change the nameservers that it points to, to 'ns1.fc10server.jeremysmith.me.uk' & 'ns2.fc10server.jeremysmith.me.uk' it just refuses to accept coming up with a response of:

Quote:
Error!

You have not entered any valid nameservers.


Error!

Your chosen nameservers do not exist in the dns. Nameservers must resolve to a valid IP address.
I have added a secondary IP: 192.168.200.21 & 192.168.200.30

This is the state of my ifcfg scripts in /etc/sysconfig/network-scripts:

Quote:
# Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+
DEVICE=eth1
HWADDR=00:10:dc:38:f1:99
ONBOOT=yes
BOOTPROTO=static
NETMASK=255.255.255.0
IPADDR=192.168.200.21
USERCTL=yes
IPV6INIT=no
NM_CONTROLLED=no
GATEWAY=192.168.200.20
TYPE=Ethernet
DNS1=192.168.200.21
DNS2=194.168.4.100
DNS3=194.168.4.237
DOMAIN=jeremysmith.me.uk
&

Quote:
# Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+
DEVICE=eth1:0
BOOTPROTO=static
IPADDR=192.168.200.30
NETMASK=255.255.255.0
ONBOOT=yes
USERCTL=yes
DNS1=192.168.200.21
DNS2=194.168.4.100
DNS3=194.168.4.237
DOMAIN=jeremysmith.me.uk
My /etc/sysconfig/network

Quote:
NETWORKING=yes
HOSTNAME=fc10server.jeremysmith.me.uk
HOSTNAME=ns1.fc10server.jeremysmith.me.uk
HOSTNAME=ns2.fc10server.jeremysmith.me.uk
The state of my hosts file in /etc/hosts

Quote:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
192.168.200.21 fc10server.jeremysmith.me.uk fc10server ns1.fc10server.jeremysmith.me.uk ns1
192.168.200.30 ns2.fc10server.jeremysmith.me.uk
::1 localhost6.localdomain6 localhost6
My /etc/resolv.conf file is like:

Quote:
# Generated by NetworkManager


# No nameservers found; try putting DNS servers into your
# ifcfg files in /etc/sysconfig/network-scripts like so:
#
# DNS1=xxx.xxx.xxx.xxx
# DNS2=xxx.xxx.xxx.xxx
# DOMAIN=lab.foo.com bar.foo.com
nameserver 192.168.200.21
nameserver 194.168.4.100
search jeremysmith.me.uk
I have some difficulty understanding, how to setup my BIND server to work with that domain, the following I have set in BIND 9:

My bind named.conf file looks like:

Quote:
zone "jeremysmith.me.uk" {
type master;
file "/var/named/jeremysmith.me.uk.hosts";
};
& my zone file:

Quote:
$ttl 38400
jeremysmith.me.uk. IN SOA ns1.fc10server.jeremysmith.me.uk. host.jeremysmith.me.uk. (
1055026205
6H
1H
5D
20M )
jeremysmith.me.uk. IN NS ns1.fc10server.jeremysmith.me.uk.
jeremysmith.me.uk. IN NS ns2.fc10server.jeremysmith.me.uk.
ns1.fc10server.jeremysmith.me.uk. IN A 192.168.200.21
ns2.fc10server.jeremysmith.me.uk. IN A 192.168.200.30
mysql.jeremysmith.me.uk. IN A 192.168.200.21
www IN A 192.168.200.21
I have obviously been looking at named.run file and it seems to be ok for my zone but its just not picking anything up by heart internet, their not allowing my nameserver can anyone help?

For clarification please ask questions as I mean my net connection to connect to the internet through a dhcp server from my belkin router that uses virgin media's ISP account on servers:

194.168.4.100
&
194.168.4.237

My servers IP within my LAN is 192.168.200.21 & secondary IP address 192.168.200.30 & then my gateway IP 192.168.200.20

Please can someone help me im literally stuck now.

Thanks,
Jez
 
Old 04-22-2009, 04:49 AM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Have you tried putting IPs in as nameservers for your domain? Note that these will need to be public IPs, not the private ones you have shown. otherwise, you will need to use a namserver service to point to your nameservers in the first place so their names can be resolved.
 
Old 04-22-2009, 07:48 AM   #3
j.smith1981
Member
 
Registered: Feb 2009
Distribution: Mainly CentOS6.4 x64
Posts: 161

Original Poster
Rep: Reputation: 1
Question

Quote:
Originally Posted by billymayday View Post
Have you tried putting IPs in as nameservers for your domain? Note that these will need to be public IPs, not the private ones you have shown. otherwise, you will need to use a namserver service to point to your nameservers in the first place so their names can be resolved.
That would be my public IP address wouldnt it?

How would I make it work on my LAN aswell?

Also using the information I have given above, would it be possible for someone to go through it with me? so that it works, would find that allot more beneficial in learning how to actually setup bind 9.

Thanks for that reply, didnt think about that, been getting myself frustrated with what I was doing as it didnt seem to work.

Thanks again,
Jez

Last edited by j.smith1981; 04-22-2009 at 07:50 AM. Reason: additional question
 
Old 04-22-2009, 05:43 PM   #4
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Are you accessing from a linux box or Windows locally?

For linux (I'm sure ther'e a GUI option, but don't ask me where), add a line to /etc/resolv.conf

nameserver IP.Address.goes.here

For windows it will be somewhere under IP properties for your network interface (sorry - not connected as an administrator, so can't see the options)
 
Old 04-23-2009, 04:03 AM   #5
j.smith1981
Member
 
Registered: Feb 2009
Distribution: Mainly CentOS6.4 x64
Posts: 161

Original Poster
Rep: Reputation: 1
Question

Quote:
Originally Posted by billymayday View Post
Are you accessing from a linux box or Windows locally?

For linux (I'm sure ther'e a GUI option, but don't ask me where), add a line to /etc/resolv.conf

nameserver IP.Address.goes.here

For windows it will be somewhere under IP properties for your network interface (sorry - not connected as an administrator, so can't see the options)
Its Fedora Linux, from the install using yum.

Ya dont happen to know anything about Proftp do ya? Just ive left another thread asking for help as to why it keeps falling over, doesnt even start the service anymore, since my external USB HS 500odd GB FREECOM drive decided to stop (light on the front went off) and now due to proftp pointing to that drive for some FTP accounts administered (excuse spelling) by MySQL, but as the drive has crashed proftp wont start what so ever.

Do you know how to fix this?
 
Old 04-23-2009, 04:18 AM   #6
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Nope - I use vsftp
 
Old 07-27-2009, 08:21 AM   #7
j.smith1981
Member
 
Registered: Feb 2009
Distribution: Mainly CentOS6.4 x64
Posts: 161

Original Poster
Rep: Reputation: 1
Question

Alright, been ages since I actually said how far I got with this.

But I think I may have just got a bit further, must admit dont know allot about dns servers but here goes:

I have the following as my /etc/named.conf file:

Quote:
//
// named.conf
//
// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
// server as a caching only nameserver (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//

options {
listen-on port 53 { 127.0.0.1; 192.168.0.127; };
listen-on-v6 port 53 { ::1; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
allow-query { localhost; };
recursion yes;
};

logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};

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

zone "testdns.com" {
type master;
notify no;
allow-query { any; };
file "testdns.com.zone";
};

include "/etc/named.rfc1912.zones";
Its finding the 'testdns.com.zone' in: '/var/named/chroot/var/named/': which includes the following:

Quote:
$TTL 86400 ; 24 hours could have been written as 24h or 1d
$ORIGIN testdns.com.
@ 1D IN SOA ns1.testdns.com. hostmaster.testdns.com. (
2002022401 ; serial
3H ; refresh
15 ; retry
1w ; expire
3h ; minimum
)
IN NS ns1.testdns.com. ; in the domain
; IN MX 10 mail.another.com. ; external mail provider ; WOULD LIKE GOOGLE MAIL TO HANDLE ALL MAIL REQUESTS!
; server host definitions
ns1 IN A 192.168.0.127 ;name server definition
www IN A 192.168.0.127 ;web server definition
ftp IN CNAME www.testdns.com. ;ftp server definition
The problem when I try and do an nslookup in 'Windows XP' is this (when I tried www.testdns.com it didnt work, but looking at this it came up with the IP address at least):

Quote:
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\jeremy smith>nslookup testdns.com
DNS request timed out.
timeout was 2 seconds.
*** Can't find server name for address 192.168.0.127: Timed out
Server: th-cache-2.ns.uk.tiscali.com
Address: 212.139.132.6

*** th-cache-2.ns.uk.tiscali.com can't find testdns.com: Non-existent domain

C:\Documents and Settings\jeremy smith>
Any ideas of what to do now?

I have in a desperate move added the following from resolv.conf, which looks like:

Quote:
# Generated by NetworkManager


# No nameservers found; try putting DNS servers into your
# ifcfg files in /etc/sysconfig/network-scripts like so:
#
# DNS1=xxx.xxx.xxx.xxx
# DNS2=xxx.xxx.xxx.xxx
# DOMAIN=lab.foo.com bar.foo.com
search fctest.jeremysmith.lan
nameserver 127.0.0.1
nameserver 212.139.132.6
nameserver 212.139.132.22
Added the bottom 4 lines like it says to the /etc/sysconfig/network-scripts/ my network adapter file, still doesnt work.

Any suggestions?
------------------------------------------------------------------------------------------

Just want it eventually to go to 'www.jeremysmith.me.uk' so when I run apache as a webserver I can use www.testdns.com as the example above, would rather understand what I am doing before changing it you know?

See if I can get that working and then get my head around forwarding servers, thats probably my best tactic for me anyways.

Last edited by j.smith1981; 07-27-2009 at 08:46 AM. Reason: Correction in post
 
Old 02-26-2010, 04:48 AM   #8
j.smith1981
Member
 
Registered: Feb 2009
Distribution: Mainly CentOS6.4 x64
Posts: 161

Original Poster
Rep: Reputation: 1
I have to say this is the biggest learning curve I have mastered with Linux setting up DNS's.

Because my machines broke a few times in the past, I now have shell scripts that do the work for me, cool eh?

But its really cool that I now know how the DNS system works, at the moment though its only working on a LAN (I darent let it out to public access as there's just far too much on the server itself).

Just a notice question though, how does one stop IP address access to the server ie, when I go to apache I type in my IP say 00.00.000.000 (made up one) it brings up one of my virtual hosts, how do I stop this from happening?

Plus also, does the NS record have to relate to whats on my hostname of the node itself?

This would clear up some questions in my mind at the moment if someone could reply, again, thanks ever so much and I look forward to anyones response!

Jeremy.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bind problem: config files are missing after re-install bind 9.5 on Fedora Core 8 elvisious Linux - Software 1 07-15-2008 08:49 PM
Massive instability problems mondy Linux - Newbie 2 01-10-2006 12:53 AM
Massive Nvidia Driver Problems, Gentoo insane_mepis_freak Linux - Distributions 5 10-24-2005 02:08 AM
Massive DVD Problems jlacroix Ubuntu 6 07-02-2005 06:05 PM
Massive Problems with Vaio and FC1! Araya Linux - Laptop and Netbook 2 02-04-2004 02:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration