Giter Site home page Giter Site logo

Comments (5)

irsdl avatar irsdl commented on August 19, 2024 1

I ran it once again (windows version 0.3) to see what I did previously, it seems it did only use the last entry as you said!

from dnschef.

irsdl avatar irsdl commented on August 19, 2024

This issue can be fixed by changing:

config = ConfigParser()

To:

config = ConfigParser(strict=False)

More info: https://docs.python.org/3.4/library/configparser.html

from dnschef.

amard33p avatar amard33p commented on August 19, 2024

This issue can be fixed by changing:

config = ConfigParser()

To:

config = ConfigParser(strict=False)

More info: https://docs.python.org/3.4/library/configparser.html

I too have this issue...but using strict=False does not fix it. It merely allows the server to run. But when you query for the SRV with nslookup, only the last record is returned.

Reason
The nametodns dictionary

nametodns[section][domain] = record

loads SRV records like this:
'SRV': {'_http._tcp.thesprawl.org': '1 5 5070 www.fake1.com'}

It's not possible to express multiple SRV records with same service name using above structure:

[SRV]
; FORMAT: priority weight port target
_http._tcp.thesprawl.org=0 5 5060 www.fake1.com
_http._tcp.thesprawl.org=1 5 5070 www.fake2.com

from dnschef.

irsdl avatar irsdl commented on August 19, 2024

Sorry I forgot to comment here, I confirm the above bad behaviour and that's why I am still using the 0.3 version.

from dnschef.

amard33p avatar amard33p commented on August 19, 2024

Sorry I forgot to comment here, I confirm the above bad behaviour and that's why I am still using the 0.3 version.

I believe you are referring to this commit.
Even with v 0.3, it only returns the last entry of the [SRV] section only

[SRV]
; FORMAT: priority weight port target
_http._tcp.thesprawl.org=0 5 5060 www.fake1.com
_http._tcp.thesprawl.org=1 5 5070 www.fake2.com
[root@ub18-01:~] nslookup -type=SRV _http._tcp.thesprawl.org
Server:         127.0.0.1
Address:        127.0.0.1#53

_http._tcp.thesprawl.org        service = 1 5 5070 www.fake2.com.

from dnschef.

Related Issues (20)

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.