Community discussions

MikroTik App

Search found 7 matches

by melboyscout
Thu Jul 07, 2016 8:03 pm
Forum: General
Topic: DNS Configuration.
Replies: 15
Views: 5880

Re: DNS Configuration.

Honestly, it would be much easier for you to just enable recursive DNS lookups in your BIND server and point your clients at that server and have done. Like pe1chl said: forwarders { 8.8.8.8; 8.8.4.4; }; The server will already have the behavior you require - answer with stuff it knows authoritativ...
by melboyscout
Thu Jul 07, 2016 9:25 am
Forum: General
Topic: DNS Configuration.
Replies: 15
Views: 5880

Re: DNS Configuration.

For anything.local, you want: \x05local.\x01 When you send a question for e.g. ftp.sub2.local, the packet will contain: 03 66 74 70 04 73 75 62 32 05 6c 6f 63 61 6c 00 00 01 00 01   f  t  p     s  u  b  2     l  o  c  a  l  xx yy yy zz zz                           |-> match from here Where: - xx is...
by melboyscout
Wed Jul 06, 2016 10:47 am
Forum: General
Topic: DNS Configuration.
Replies: 15
Views: 5880

Re: DNS Configuration.

Is it supposed to be top level domain? And is it really what it appears to be, i.e. regexp for <anything>istar (aistar, bistar, abcdistar, ...)? If it's TLD, then use simple: istar.\x01 It might give you some false positives, e.g. istarx.y.example.net, but it should not be too bad. Need only anythi...
by melboyscout
Tue Jul 05, 2016 8:33 pm
Forum: General
Topic: DNS Configuration.
Replies: 15
Views: 5880

Re: DNS Configuration.

DNS packets use simple encoding where before each name part is a byte with value equal to length of the following part, like this: mail.groupe1.local = \x04mail\x07groupe1\x05local To filter out false positives, append .\x01 at the end: .local = \x05local.\x01 Otherwise it would also match e.g. loc...
by melboyscout
Tue Jul 05, 2016 11:47 am
Forum: General
Topic: DNS Configuration.
Replies: 15
Views: 5880

Re: DNS Configuration.

Simple. First put Google DNS in router's config in /ip dns, then give router's address to clients as DNS server. Then write to MikroTik support and ask them nicely to finally implement an ancient feature request from this thread: Feature request: per-domain forwarding in DNS . Wait a little (month,...
by melboyscout
Mon Jul 04, 2016 10:04 am
Forum: General
Topic: DNS Configuration.
Replies: 15
Views: 5880

Re: DNS Configuration.

Other situation.
I have my own local DNS sever (BIND9). It is resolve only local names.  But I want use internet too.
If I will set google DNS in IP-DNS-Server first, I cannot resolve local names. If I will set my own DNS server first, I cannot surf inet.
How can I solve this&
by melboyscout
Sat Nov 23, 2013 12:32 pm
Forum: General
Topic: Calculate Day of Week from Date
Replies: 5
Views: 7368

Re: Calculate Day of Week from Date

Test my script, please # Calculates day of the week for a givien date # Month: jan,feb ... nov,dec (must be lower-case) # Day: 1 - 31 # Year: 1583 - ... # mmm/dd/yyyy same format as [/system clock get date] # (ex. feb/19/2012) # by melboyscout (melboyscout [at] gmail.com) :local date [/system clock ...