ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Configuring DNS for a Sandbox Lab

    Scheduled Pinned Locked Moved IT Discussion
    5 Posts 3 Posters 895 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • s.hacklemanS
      s.hackleman
      last edited by

      I am setting up a little virtual lab and network off of my main network with a PPTP VPN to access it. We can call this "Operation Hide my Linux Toys." I have 2 VM's so far. VM1 we will call Server1, VM2 we will call VPNServer has 2 NIC's configured one on the internal 192.168.0.0/24 network, one on the main company network. Server1 has 1 NIC static assigned at 192.168.0.150. I have edited the hosts file on VPNServer to have a record for Server1 to return 192.168.0.150. When I connect my laptop to VPNServer via PPTP, I get a ip on the 192.168.0.0 network, and I can ping 192.168.0.150. What is the easiest way to set this up so I can have Server1 on my laptop VPN client resolve that to 192.168.0.150. I was thinking setting up a DNS Server on VPNServer, but that seems like overkill for a hand full of servers I would just put in my hosts file.

      1 Reply Last reply Reply Quote 0
      • dafyreD
        dafyre
        last edited by

        I would suggest YES for a DNS Server.

        DNSMasq is easy, and then you can just continue editing the hosts file on the VPNServer.

        1 Reply Last reply Reply Quote 0
        • scottalanmillerS
          scottalanmiller
          last edited by

          We just use a host file. SO easy to maintain. Just make a master and copy it around with SCP! You canmake a one "line" script that does all the work for you so that it is SUPER easy.

          1 Reply Last reply Reply Quote 0
          • s.hacklemanS
            s.hackleman
            last edited by

            Thanks for the advice Scott, but my clients are not all using the same OS. I am 1 step away. Here is what I have

            MacBook:~ Scottie$ nslookup Server1 192.168.0.1
            Server: 192.168.0.1
            Address: 192.168.0.1#53

            Name: Server1
            Address: 192.168.0.150

            Howerver : MacBook:~ Scottie$ nslookup Server1 returns ** server can't find gitlab: SERVFAIL with just my local DNS servers. I have 192.168.0.1 added to the DNS settings for the VPN, but it is like they are not being added.

            1 Reply Last reply Reply Quote 0
            • scottalanmillerS
              scottalanmiller
              last edited by

              I'm afraid that I have not used PPTP for.... ~18 years or so.

              1 Reply Last reply Reply Quote 1
              • 1 / 1
              • First post
                Last post