Results 1 to 3 of 3

Thread: Alternative DNS Client Port

  1. #1
    Join Date
    Nov 2006
    Beans
    52

    Alternative DNS Client Port

    I am trying to add a DNS server to Ubuntu that does not utilize the default port 53. How is this possible in Ubuntu? Irc.ubuntu.com #ubuntu was uncertain this was possible. Adding a host <dns_server_ip>:<port> failed to work in Ubuntu 9.10. I wish to do this on the client side, not the server side (server is setup with a non-port 53 port).

    One makeshift suggestion was:
    ssh -2 -4 -N -T -R remotehost:5353:localhost:53
    //substitute 5353 for the remote dns port

    Another suggestion would be temporarily editing the /etc/resolv.conf But this would change upon reboot.

    There should be a easier way to do this.
    My PGP Public Encryption Key:
    http://johndoe32102002.blogspot.com

  2. #2
    Join Date
    Jul 2006
    Beans
    Hidden!
    Distro
    Kubuntu 8.04 Hardy Heron

    Re: Alternative DNS Client Port

    Of course there is simplier solution: use iptables DNAT.

    Code:
    iptables -t nat -D OUTPUT -d remote_dns_ip -p udp --dport 53 -j DNAT --to remote_dns_ip:5353

  3. #3
    Join Date
    Nov 2006
    Beans
    52

    Re: Alternative DNS Client Port

    A simple way would be to add this capability natively into to Ubuntu. Thanks though for the command; I may use it when it because necessary.
    My PGP Public Encryption Key:
    http://johndoe32102002.blogspot.com

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •