Answers: <p>Yes you can do it. You have to set up <a href="https://en.wikipedia.org/wiki/BIND" rel="nofollow noreferrer">BIND</a> as a Private Network DNS Server.</p>
  
Answers: CC BY-SA 4.0
Answers: 2020-12-07T04:14:03.997Z
Answers: 2020-12-07T04:14:03.997Z
Answers: rooni
Body: <p>I'll be very direct. I'm tired to search this and do not found anything about it.
  There is any way to change a lan ip to a dns (not chaging 'hosts' file)?
  Example:
  I've a centOs running in machine A and code any types of code in machine B.
  Either machine A and B are in same local area network and have differetns IP's.
  So, Machine B has 10.0.0.2 as IP and Machine B has 10.0.0.3.
  Machine A has docker on it, and I can acess from machine B as 10.0.0.2:xxxx
  What I'm trying to accomplish is:
  Machine B insted of reaching machine A with IP (10.0.0.2:xxxx) I'm intend to reach with anyname.dsv.local.</p>
  
Tags: <docker><dns>
Title: How to change Ip for a DNS
UserDisplayName: Bruno Souto
ThreadText: # How to change Ip for a DNS
  
  (Asked by: username_0 on 2020-12-05)
  
  I'll be very direct. I'm tired to search this and do not found anything about it.
  There is any way to change a lan ip to a dns (not chaging 'hosts' file)?
  Example:
  I've a centOs running in machine A and code any types of code in machine B.
  Either machine A and B are in same local area network and have differetns IP's.
  So, Machine B has 10.0.0.2 as IP and Machine B has 10.0.0.3.
  Machine A has docker on it, and I can acess from machine B as 10.0.0.2:xxxx
  What I'm trying to accomplish is:
  Machine B insted of reaching machine A with IP (10.0.0.2:xxxx) I'm intend to reach with anyname.dsv.local.
  
  **Tags:** docker, dns
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2020-12-07. Score: 1
  
  Yes you can do it. You have to set up [BIND](https://en.wikipedia.org/wiki/BIND) as a Private Network DNS Server.
  
  
  ---
  
  