LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 02-28-2010, 02:48 PM   #1
Lucard
LQ Newbie
 
Registered: Feb 2010
Location: Lancaster Ohio
Distribution: Ubuntu
Posts: 19

Rep: Reputation: 0
Bind9 stop working wheni installed Postfix on Ubuntu 9.10


I have a Ubuntu server running in my house.
Server name Usha
Main PC name Home
Laptop 1 Named Boo
Laptop 2 Names Bob
every one is running Ubuntu 9.10

The server is running Bind9 and Samba and is working from any other PC i can type ping usha and it will give me teh ip address of the server.

This has been working for 4 months now.

I just installed PostFix and nowthe only PC that is working with i ping the name USHA "server name " Is the server.

The other three pc come back with the IP address of the domain for USHA.



I have removed the Postfix from the server but the DNS is still not working for the other pc on the network.


Ho do I get Bind working again form the rest of the PC.

Plus the other pc still show USHA ad the DNS server.
 
Old 02-28-2010, 03:02 PM   #2
spampig
Member
 
Registered: Feb 2010
Location: /Earth/UK/England/Hampshire
Distribution: Debian, Ubuntu, CentOS, Slackware
Posts: 262
Blog Entries: 2

Rep: Reputation: 56
I think you are saying that DNS requests from other machines in the networks are no longer being served by BIND9 on 'Usha'?? If so I would look at the other PC's what are the contents of:
/etc/resolv.conf
/etc/hosts
/etc/nsswitch.conf

I'd also look at the DHCP server (if you are using DHCP - check any cable/dsl router type device that may offer DHCP) and see what Name Server(s) it is assigning to your dynamic clients.
 
1 members found this post helpful.
Old 02-28-2010, 03:13 PM   #3
Lucard
LQ Newbie
 
Registered: Feb 2010
Location: Lancaster Ohio
Distribution: Ubuntu
Posts: 19

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by spampig View Post
I think you are saying that DNS requests from other machines in the networks are no longer being served by BIND9 on 'Usha'?? If so I would look at the other PC's what are the contents of:
/etc/resolv.conf
/etc/hosts
/etc/nsswitch.conf

I'd also look at the DHCP server (if you are using DHCP - check any cable/dsl router type device that may offer DHCP) and see what Name Server(s) it is assigning to your dynamic clients.
I am at the my office now and can not get to my server at home but when i do get home I will look at the three files and post the infromation from them.

I think my network cables are ok. I can type ssh lucard@192.168.100.2 and it will open a connection to the usha server.

Usha ip 192.168.100.2

If i try to telnet from any other pc to 192.168.100.2 it will not work any more I now have to use the command ssh lucard@192.168.100.2
This just started after I did sudo apt-get installed Postfix.

I do not know if that will help but when I get home I will post the three files so it can be seen.
 
Old 02-28-2010, 04:40 PM   #4
Lucard
LQ Newbie
 
Registered: Feb 2010
Location: Lancaster Ohio
Distribution: Ubuntu
Posts: 19

Original Poster
Rep: Reputation: 0
I am at the my office now and can not get to my server at home but when i do get home I will look at the three files and post the infromation from them.

I think my network cables are ok. I can type ssh lucard@192.168.100.2 and it will open a connection to the usha server.

Usha ip 192.168.100.2

If i try to telnet from any other pc to 192.168.100.2 it will not work any more I now have to use the command ssh lucard@192.168.100.2
This just started after I did sudo apt-get installed Postfix.

I do not know if that will help but when I get home I will post the three files so it can be seen.
 
Old 03-01-2010, 12:37 AM   #5
Lucard
LQ Newbie
 
Registered: Feb 2010
Location: Lancaster Ohio
Distribution: Ubuntu
Posts: 19

Original Poster
Rep: Reputation: 0
/etc/resolv.conf
# Generated by NetworkManager
domain lucard.com
search lucard.com
nameserver 192.168.100.2
nameserver 209.18.47.61

/etc/hosts
127.0.0.1 localhost
127.0.1.1 Boo

# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
~



/etc/nsswitch.conf
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.

passwd: compat
group: compat
shadow: compat

hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4
networks: files

protocols: db files
services: db files
ethers: db files
rpc: db files

netgroup: nis
 
Old 03-01-2010, 12:48 AM   #6
Lucard
LQ Newbie
 
Registered: Feb 2010
Location: Lancaster Ohio
Distribution: Ubuntu
Posts: 19

Original Poster
Rep: Reputation: 0
When I look up any site on one of the pc in my next work it takes about one minute before it starts to pull a site.
It looks as if my DNS server is not looking up the IP address so it have to go out to the next DNS server
 
Old 03-01-2010, 01:01 AM   #7
Lucard
LQ Newbie
 
Registered: Feb 2010
Location: Lancaster Ohio
Distribution: Ubuntu
Posts: 19

Original Poster
Rep: Reputation: 0
I think that my port 53 on my DNS server is Blocked.
How can i check
 
Old 03-01-2010, 01:31 AM   #8
spampig
Member
 
Registered: Feb 2010
Location: /Earth/UK/England/Hampshire
Distribution: Debian, Ubuntu, CentOS, Slackware
Posts: 262
Blog Entries: 2

Rep: Reputation: 56
My guess is that your requests are not being answered by 192.168.100.2, instead they are answered by 209.18.47.61.

TRY THIS:

Code:
nslookup bbc.co.uk 192.168.100.2
Followed by this

Code:
nslookup bbc.co.uk 209.18.47.61
From one of the clients. Note any differences.

BIND should listen for UDP and TCP so you can quickly find out ifIf port 53 is blocked with telnet:

BLOCKED/REFUSED
Code:
telnet 192.168.100.2 53
Trying 192.168.100.2...
telnet: Unable to connect to remote host: Connection refused
GOOD
Code:
telnet 192.168.100.2 53
Trying 192.168.100.2...
Connected to 192.168.100.2.
Escape character is '^]'.
{exit by pressing the 'CTRL' + ']' + 'ENTER' then at the TELNET> prompt type 'quit'}

If you have it blocked and your machines are on the same network segment, check the firewall on 192.168.100.2 with:
Code:
'iptables -nvL'
You can add a non persistent rule to allow port 53 with something like this:
Code:
iptables -A INPUT -p udp -i eth0 --dport 53 -j ACCEPT
iptables -A INPUT -p tcp -i eth0 --dport 53 -j ACCEPT
HTH
 
1 members found this post helpful.
Old 03-01-2010, 12:13 PM   #9
Lucard
LQ Newbie
 
Registered: Feb 2010
Location: Lancaster Ohio
Distribution: Ubuntu
Posts: 19

Original Poster
Rep: Reputation: 0
this is fixed now.
it was a firewall that I installed.
it was installed on the server when I installed the postfix.
I ad to go in and open the port 53 up and now it is working
 
Old 03-01-2010, 12:17 PM   #10
spampig
Member
 
Registered: Feb 2010
Location: /Earth/UK/England/Hampshire
Distribution: Debian, Ubuntu, CentOS, Slackware
Posts: 262
Blog Entries: 2

Rep: Reputation: 56
Fantastic news :-) Remember it's there if you put Postfix back - you'll probably want port 25 open for Postfix.
 
  


Reply



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
Postfix stop working after you change an Alias milindras Ubuntu 9 11-19-2009 09:17 AM
[SOLVED] BIND9 startup error, just installed on ubuntu 9.04 Predatorian Linux - Server 6 11-13-2009 01:43 AM
gnome parts stop working or vanish from Ubuntu Hardy SaintDanBert Linux - Desktop 1 01-28-2009 11:05 AM
DNS (bind9) on Ubuntu not working right Avatar Linux - Networking 9 01-07-2008 04:01 PM
Postfix Installed but not working neilg_cebu Red Hat 3 01-19-2007 08:25 AM

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

All times are GMT -5. The time now is 02:41 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