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

To subscribe or unsubscribe via the World Wide Web, visit
        https://osl.uoregon.edu/mailman/listinfo/netdot-users
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-users digest..."


Today's Topics:

   1. /etc/hosts import? (Erik Andersen)
   2. Re: /etc/hosts import? (Carlos Vicente)


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

Message: 1
Date: Wed, 27 Aug 2014 18:24:11 -0700
From: Erik Andersen <[email protected]>
Subject: [Netdot-users] /etc/hosts import?
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8; format=flowed

So, we've maintained our forward and reverse DNS in an /etc/hosts file 
for years. From that, we have a script (recently rewritten) that 
generates bind zone files for one forward domain and the IPv4 reverse 
DNS from that, and then includes some various records from a bind 
"include" file.

The include files are few enough that that could be handled manually.

So, is there a way to import a hosts file? I also have a routing table 
from one of our border routers that I can use to programmatically know 
where the bounds of various network blocks are.

I've tried the bind importer, but for some reason it doesn't like the 
bind files I've generated (which bind seems fine with):
Bareword found where operator expected at eoni.com line 10591, near "245 
           IN"
        (Missing operator before IN?)
Number found where operator expected at eoni.com line 10592, near "216"
        (Missing semicolon on previous line?)
Bareword found where operator expected at eoni.com line 10592, near "246 
           IN"
        (Missing operator before IN?)
Number found where operator expected at eoni.com line 10593, near "216"
        (Missing semicolon on previous line?)

So, I've been using python's requests library to try to interact with 
the webUI, but that takes quite a while to get right. What's the best 
way to get a hosts file into netdot (at least for tracking used 
addresses and generating DNS zone files)?

--
Erik


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

Message: 2
Date: Thu, 28 Aug 2014 08:08:35 -0400
From: Carlos Vicente <[email protected]>
Subject: Re: [Netdot-users] /etc/hosts import?
To: Erik Andersen <[email protected]>
Cc: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii

The easiest would be to look into why the BIND files are not imported, and 
correct that.

Otherwise, you could write some code to parse your /etc/hosts file and create 
Net::DNS objects, which can then be fed into Zone::import_records() in Netdot.

cv


On Aug 27, 2014, at 9:24 PM, Erik Andersen <[email protected]> wrote:

> So, we've maintained our forward and reverse DNS in an /etc/hosts file 
> for years. From that, we have a script (recently rewritten) that 
> generates bind zone files for one forward domain and the IPv4 reverse 
> DNS from that, and then includes some various records from a bind 
> "include" file.
> 
> The include files are few enough that that could be handled manually.
> 
> So, is there a way to import a hosts file? I also have a routing table 
> from one of our border routers that I can use to programmatically know 
> where the bounds of various network blocks are.
> 
> I've tried the bind importer, but for some reason it doesn't like the 
> bind files I've generated (which bind seems fine with):
> Bareword found where operator expected at eoni.com line 10591, near "245 
>           IN"
>       (Missing operator before IN?)
> Number found where operator expected at eoni.com line 10592, near "216"
>       (Missing semicolon on previous line?)
> Bareword found where operator expected at eoni.com line 10592, near "246 
>           IN"
>       (Missing operator before IN?)
> Number found where operator expected at eoni.com line 10593, near "216"
>       (Missing semicolon on previous line?)
> 
> So, I've been using python's requests library to try to interact with 
> the webUI, but that takes quite a while to get right. What's the best 
> way to get a hosts file into netdot (at least for tracking used 
> addresses and generating DNS zone files)?
> 
> --
> Erik
> _______________________________________________
> Netdot-users mailing list
> [email protected]
> https://osl.uoregon.edu/mailman/listinfo/netdot-users




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

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


End of Netdot-users Digest, Vol 69, Issue 11
********************************************

Reply via email to