Send Netdot-devel mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        https://osl.uoregon.edu/mailman/listinfo/netdot-devel
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Netdot-devel digest..."


Today's Topics:

   1. [Netdot - Bug #1762] Reverse auto DNS breaks in
      DeviceIpNamesByInt.pm when a device hostname contains a "."
      ([email protected])


----------------------------------------------------------------------

Message: 1
Date: Sat, 13 Jul 2013 04:52:19 -0700
From: [email protected]
Subject: [Netdot-devel] [Netdot - Bug #1762] Reverse auto DNS breaks
        in      DeviceIpNamesByInt.pm when a device hostname contains a "."
To: [email protected], [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8


Issue #1762 has been updated by Nick Hilliard.


this affects forward dns too, hmm.
----------------------------------------
Bug #1762: Reverse auto DNS breaks in DeviceIpNamesByInt.pm  when a device 
hostname contains a "."
https://osl.uoregon.edu/redmine/issues/1762#change-3093

Author: Nick Hilliard
Status: New
Priority: Normal
Assignee: 
Category: DNS
Target version: 1.0.5
Resolution: 


DeviceIpNamesByInt::get_name_from_interface automatically strips anything after 
and including the period in a device name.  If the network device actually has 
a legitimate "." in it, this breaks the auto reverse DNS.

E.g. if your device hostname is "router.pop", the interface name is Gi0/0 and 
the domain name is "example.com", DeviceIpNamesByInt::get_name_from_interface() 
will return "gi0-0.pop.example.com" instead of "gi0-0.router.pop.example.com".  
This is obviously incorrect.

This can be fixed with the following patch:

<pre>
--- lib/Netdot/Model/Plugins/DeviceIpNamesByInt.pm.old  2013-06-14 
02:13:43.000000000 +0100
+++ lib/Netdot/Model/Plugins/DeviceIpNamesByInt.pm      2013-06-19 
23:55:21.000000000 +0100
@@ -142,7 +142,7 @@
     # Remove any possible prefixes added
     # e.g. loopback0.devicename -> devicename
     my $devname = $ip->interface->device->short_name;
-    $devname =~ s/^.*\.(.*)/$1/;
+#    $devname =~ s/^.*\.(.*)/$1/;
     $name .= ".".$devname ;

     return $name;
</pre>

I'm not sure what the best thing is to do here.  If this line is removed, that 
will change the default behaviour, which may affect other installations.  On 
the other hand, the current behaviour is clearly wrong in many legitimate 
situations.


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://osl.uoregon.edu/redmine/my/account


------------------------------

_______________________________________________
Netdot-devel mailing list
[email protected]
https://osl.uoregon.edu/mailman/listinfo/netdot-devel


End of Netdot-devel Digest, Vol 76, Issue 7
*******************************************

Reply via email to