Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 26th February 2008, 08:32
chillifire chillifire is offline
HowtoForge Supporter
 
Join Date: Oct 2007
Posts: 75
Thanks: 3
Thanked 3 Times in 3 Posts
Default Issue resolving to correct domain name with telnet

Hi,

I have installed the munin package on one of my Ubuntu 7.10 servers and I run munin agents on all other servers (2 x Ubuntu 7.10). These munin agents are linking through to the one server, on which I can see all servers and all domain's perfomrance graphs -well, all but one server.

One server shows as node in munin, but shows no graphs. To ensure it is not a firewall or connection issue, I have installed the munin server on that physical server as well - to no avail - still no graphs.

I found this in the munin wiki:
Quote:
No graphs at all
Problem: Munin does not create any graphs. There is only an almost empty web page.
Solution: The hostname that the Munin master expects is probably different from the hostname reported by the node. Normally, the hostname in the host definition [host.example.com] in the master's munin.conf must be the same that the node reports when telnetting to port 4949. You can change the reported hostname with the host_name directive in the node's munin-node.conf file. Another solution is to add use_node_name yes to the host section in the master's munin.conf file.
Now, I tried all combinations of host_name and use_node_directive to no avail. I tested connections with telnet and got this result:
Code:
root@finch:/etc/bind# telnet login02.chillifire.net 4949
Trying 210.48.62.11...
Connected to finch.chillifire.net.
Escape character is '^]'.
# munin node at login02.chillifire.net
Connection closed by foreign host.
root@finch:/etc/bind# telnet login03.chillifire.net 4949
Trying 210.48.62.36...
Connected to login03.chillifire.net.
Escape character is '^]'.
Connection closed by foreign host.
root@finch:/etc/bind# telnet login01.chillifire.net 4949
Trying 210.48.62.43...
Connected to login01.chillifire.net.
Escape character is '^]'.
Connection closed by foreign host.
root@finch:/etc/bind# telnet login02.chillifire.net 4949
Trying 210.48.62.11...
Connected to finch.chillifire.net.
Escape character is '^]'.
# munin node at login02.chillifire.net
Connection closed by foreign host.
root@finch:/etc/bind# telnet login03.chillifire.net 4949
Trying 210.48.62.36...
Connected to login03.chillifire.net.
Escape character is '^]'.
Connection closed by foreign host.
root@finch:/etc/bind# telnet login01.chillifire.net 4949
Trying 210.48.62.43...
Connected to login01.chillifire.net.
Escape character is '^]'.
Connection closed by foreign host.
root@finch:/etc/bind#
'login02.chillifire.net' is the culprit. And see how that domain is not resolved by telnet to 'login02.chillifire.net' but to 'finch.chillifire.net'? finch is the hostname by the way. Now, when I run the same test on one of the other servers, the behaviour is expected:
Code:
root@blackbird:/etc# telnet login01.chillifire.net 4949
Trying 210.48.62.43...
Connected to login01.chillifire.net.
Escape character is '^]'.
Connection closed by foreign host.
root@blackbird:/etc# telnet login02.chillifire.net 4949
Trying 210.48.62.11...
Connected to login02.chillifire.net.
Escape character is '^]'.
Connection closed by foreign host.
root@blackbird:/etc# telnet login03.chillifire.net 4949
Trying 210.48.62.36...
Connected to login03.chillifire.net.
Escape character is '^]'.
Connection closed by foreign host.
So it seems quite likely that the problems I am observing come from the behaviour of the finch server to resolve 210.48.62.11 to finch.chillifre.net instead of login02.chillifire.net.

So the $60000 question is this: Where do telnet (and munin) get the idea the server's domain name is finch.chillifire.net instead of login02.chillifire.net?


I checked the /etc/hosts files and could see no significant differences. No DNS record for finch.chillifire.net exists, so Bind cannot be the culprit.

Please help (I am beginning to be desperate)

Cheers

chillifire

Attachement

hosts file on finch (which behaves incorrectly)
Code:
127.0.0.1       localhost.localdomain   localhost
210.48.62.11    finch.chillifire.net    finch
210.48.62.11    radius02.chillifire.net radius02
210.48.62.11    login02.chillifire.net  login02
210.48.62.11    mysql02.chillifire.net  mysql02

::1     ip6-localhost   ip6-loopback finch.chillifire.net
fe00:0  ip6-localnet
ff00::0 ip6-macastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
hosts file on blackbird (which behaves correctly)
Code:
127.0.0.1       localhost.localadmin            localhost
210.48.62.30    blackbird.chillifire.net        blackbird

::1     ip6-localhost   ip6-loopback blackbird.chillifire.net
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff03::3 ip6-allhosts
Reply With Quote
Sponsored Links
 

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPConfig unsual behavior! cybereatl Installation/Configuration 25 28th February 2007 13:48
Hostname & Domain Name Issue DJLunacy Installation/Configuration 4 15th November 2006 09:24
DNS Not Resolving Domain Name asyadiqin Installation/Configuration 10 3rd November 2006 14:47
domain resolving failed torusturtle Installation/Configuration 3 31st August 2006 22:30
ISP Services wouldn't restart any service, possibly Domain Host configuration issue. Kamran Shah Installation/Configuration 20 17th August 2006 17:33


All times are GMT +2. The time now is 11:13.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.