Skip to content

A few Gost DNS setup / configuration questions #794

@ks-nss

Description

@ks-nss

I have gost v3.2.5 running locally but could do with some help getting it to intercept my dns requests. I have listed my current configuration at the bottom of the post and have listed the three issue that I am having, if you can help with any of these then that would be appreciated and if you want me to post these as separate issues then I am happy to do that also.

  1. Currently if I do a nslookup for say "thingA.domain1.com" I get the IP address I expect back from the mapping but I also get a "NX Domain" that I think mu unbound dns resolver is returning. I think my dns request to going to both the mapping and the forwarder, Is there a way to filter this or try mapping first and then use the forwarder if no mapping exists ?
#nslookup
> thingA.domain1.com
Server:		192.168.1.111
Address:	192.168.1.111#53

Non-authoritative answer:
Name:	thingA.domain1.com
Address: 192.168.222.2
** server can't find thingA.domain1.com: NXDOMAIN

  1. Do I need to have two dns services if I want gost to listen for dns requests on two different IP addresses, I basically want the following but can figure out how to achieve this, I tried a few combinations based on what I could find in the documentation but I couldn't get any to work.

addr: 192.168.111.254:53, 192.168.112:254:53 (doesn't work)

addr: (doesn't work)

  • 192.168.111.254:53
  • 192.168.112.254:53
  1. wildcard hosts mapping ? Is it possible to get *.domain1.com wildcard to work I tried but couldn't get it to work. if this isn't possible then that ok, it's not a problem, I am just curious.

hosts:

  • name: hosts-0
    mappings:
    • ip: 192.168.111.35
      hostname: *.domain1.com

Current Setup......

  • name: dns
    addr: 192.168.1.111:53
    loggers: logger-0
    handler:
    type: dns
    listener:
    type: dns
    metadata:
    mode: udp
    forwarder:
    nodes:
    • name: localdns
      addr: 127.0.0.1
      hosts: hosts-0

hosts:

  • name: hosts-0
    mappings:
    • ip: 192.168.222.2
      hostname: thingA.domain1.com
    • ip: 192.168.222.3
      hostname: thingB.domain1.com

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions