Giter Site home page Giter Site logo

Comments (6)

Tolaris avatar Tolaris commented on July 30, 2024

Awesome, I look forward to your pull request! I'm familiar with the problem
of devices violating the DNS spec, and with how much Mikrotik scripting
sucks. I don't use this script personally anymore, but if you've tested it
I'm happy to take a fix.

On 12 May 2016 at 18:46, Jeroen Wiert Pluimers [email protected]
wrote:

Hostnames should only include a limited set of characters:
https://en.wikipedia.org/wiki/Hostname#Restrictions_on_valid_host_names

I've two types of devices that fail here:

  • Harman Kardon devices (BDS580_AP 02e466)
  • Buffalo networking (AP4CE6760F5042) - seems legit, but has a
    terminating null character

They are added with invalid hostnames into the DNS.

In due time you will get a pull request that solves this and also remove
those added invalid hostnames.

It is going to take a while as the Mikrotik RouterOS Scripting language
has very limited documentation, has some issues with associative arrays and
the :pick function, and in general has a steep learning curve.

--jeroen


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#1

from mikrotik-dns-dhcp.

jpluimers avatar jpluimers commented on July 30, 2024

Hi Tyler,

Thanks.

So you still use Mikrotik devices?

I ask because I want to put up a collection of RouterOS scripts online
(probably github or bitbucket) and looking for people that have reasonable
input to start with.

I've recently asked a few script related questions on the mikrotik forums
and the state-of-the-art isn't really what I was hoping for (:

Regards,

--jeroen

from mikrotik-dns-dhcp.

Tolaris avatar Tolaris commented on July 30, 2024

That's a kind offer, thanks! Email me at [email protected] (tyler tolaris
com, does github try to obfuscate emails? About to find out.) to contact me
directly any time. Ping me if you come to London!

I do use two Mikrotik routers for some colocated servers I own, which means
I don't need dynamic DNS/DHCP integration anymore and rarely script
anything. But I'm happy to share what I have.

On 15 May 2016 at 16:04, Jeroen Wiert Pluimers [email protected]
wrote:

Hi Tyler,

Thanks.

So you still use Mikrotik devices?

I ask because I want to put up a collection of RouterOS scripts online
(probably github or bitbucket) and looking for people that have reasonable
input to start with.

I've recently asked a few script related questions on the mikrotik forums
and the state-of-the-art isn't really what I was hoping for (:

BTW: If you ever are back in Amsterdam, let me know. We can probably
accommodate you for a few nights here.

Regards,

--jeroen

Groet,

Jeroen W. Pluimers - specialist in .NET, Win32, SQL, Visual Studio & Delphi
tel: +31 20 610 8322
fax: +31 20 610 8323
GSM: +31 654 385 135
mailto:[email protected]
Pluimers Software Ontwikkeling BV, Amsterdam, Trade-register 34152606
http://wiert.me ; http://jwpluimers.myplaxo.com/

On Fri, May 13, 2016 at 8:44 AM, Tyler J. Wagner <[email protected]

wrote:

Awesome, I look forward to your pull request! I'm familiar with the
problem
of devices violating the DNS spec, and with how much Mikrotik scripting
sucks. I don't use this script personally anymore, but if you've tested
it
I'm happy to take a fix.

On 12 May 2016 at 18:46, Jeroen Wiert Pluimers <[email protected]

wrote:

Hostnames should only include a limited set of characters:

https://en.wikipedia.org/wiki/Hostname#Restrictions_on_valid_host_names

I've two types of devices that fail here:

  • Harman Kardon devices (BDS580_AP 02e466)
  • Buffalo networking (AP4CE6760F5042) - seems legit, but has a
    terminating null character

They are added with invalid hostnames into the DNS.

In due time you will get a pull request that solves this and also
remove
those added invalid hostnames.

It is going to take a while as the Mikrotik RouterOS Scripting language
has very limited documentation, has some issues with associative arrays
and
the :pick function, and in general has a steep learning curve.

--jeroen


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#1


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
<
#1 (comment)


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#1 (comment)

from mikrotik-dns-dhcp.

mmv-ru avatar mmv-ru commented on July 30, 2024

What is best to do with unacceptable symbols? Remove or replace by hex code?
Or some smart behavior, like remove NULL (and other control chars?) replace underscore to minus and others to hex.

from mikrotik-dns-dhcp.

jpluimers avatar jpluimers commented on July 30, 2024

I'm working on the latter. See https://github.com/jpluimers/mikrotik-routeros/blob/master/scripts/Function.stripInvalidHostNameCharactersFromString.rsc for my work so far.

from mikrotik-dns-dhcp.

jpluimers avatar jpluimers commented on July 30, 2024

@mmv-ru in the link a LOG output by the code I have so far.

I need to add a decision column to the log and then cleanup the code.

https://gist.github.com/jpluimers/5555abaf0d46357203638b674930abfe

from mikrotik-dns-dhcp.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.