How to assign multiple fixed ip address for one domain?

daisy

I'm running dnsmasq,

address=/chat.freenode.net/130.239.18.172
address=/chat.freenode.net/140.211.167.105

But seems dnsmasq only recognize the last record, what should I do?

Serge

Create a file, say /etc/hosts.chat.freenode.net, that has the same format as /etc/hosts file and list all IP addresses with name in this file:

130.239.18.172 chat.freenode.net
140.211.167.105 chat.freenode.net

Then add to the dnsmasq.conf the following line:

addn-hosts=/etc/hosts.chat.freenode.net

Or put these two lines into /etc/hosts if dnsmasq is set to read in the /etc/hosts.

Then restart dnsmasq

Enjoy.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

assign ip address to domain name

From Dev

How to set a domain to ip address?

From Dev

Will there be problems if I assign my laptop a fixed IP address?

From Dev

how can one manually assign a permanent / static IP address with "ip addr add"?

From Dev

How to host multiple dockerized websites (ngnix) in one ip address?

From Dev

How to Redirect marked packets on multiple ports to one IP Address

From Dev

How to find a domain based on the IP address?

From Dev

How to ping an IP address in another domain?

From Dev

How to assign IP address to interface in python?

From Dev

How to Assign Different IP Address to Different Application

From Dev

How to assign a static IP address to different devices

From Dev

Tricky domain setup with one IP with multiple servers

From Dev

Is it possible for many domain names to share one IP address?

From Dev

When multiple client hosts are behind a NAT sharing one 'external' IP address, how do multiple clients to connect concurrently to the same address?

From Dev

How can I (from CLI) assign multiple IP addresses to one interface?

From Dev

How to set fixed ip address for container using docker-compose?

From Dev

How to check if a server has a fixed IP address using Powershell?

From Dev

How to set a fixed IP address for the Gnome Boxes virtual machine

From Dev

How can I use DD-WRT to resolve multiple hostnames to one IP address?

From Dev

Is it possible to assign 1 domain to 2 different ip address (internet & intranet user)?

From Dev

How to Assign Multiple IP Addresses and Subnets to Bind?

From Dev

Regex: How to leave out string + space before a domain or IP address?

From Dev

Changing ip address for a domain name - how to test if ssl will still work?

From Dev

How to block access to sub-domain by IP address

From Dev

How can I hide the IP address associated with my domain name?

From Dev

How to point domain and subdomain to dedicated server using IP address?

From Dev

How to specify domain name and ip address in URL (ignore CN)

From Dev

How does a webserver know the correct domain from IP address?

From Dev

HAProxy how to detect url is IP address instead of domain name

Related Related

  1. 1

    assign ip address to domain name

  2. 2

    How to set a domain to ip address?

  3. 3

    Will there be problems if I assign my laptop a fixed IP address?

  4. 4

    how can one manually assign a permanent / static IP address with "ip addr add"?

  5. 5

    How to host multiple dockerized websites (ngnix) in one ip address?

  6. 6

    How to Redirect marked packets on multiple ports to one IP Address

  7. 7

    How to find a domain based on the IP address?

  8. 8

    How to ping an IP address in another domain?

  9. 9

    How to assign IP address to interface in python?

  10. 10

    How to Assign Different IP Address to Different Application

  11. 11

    How to assign a static IP address to different devices

  12. 12

    Tricky domain setup with one IP with multiple servers

  13. 13

    Is it possible for many domain names to share one IP address?

  14. 14

    When multiple client hosts are behind a NAT sharing one 'external' IP address, how do multiple clients to connect concurrently to the same address?

  15. 15

    How can I (from CLI) assign multiple IP addresses to one interface?

  16. 16

    How to set fixed ip address for container using docker-compose?

  17. 17

    How to check if a server has a fixed IP address using Powershell?

  18. 18

    How to set a fixed IP address for the Gnome Boxes virtual machine

  19. 19

    How can I use DD-WRT to resolve multiple hostnames to one IP address?

  20. 20

    Is it possible to assign 1 domain to 2 different ip address (internet & intranet user)?

  21. 21

    How to Assign Multiple IP Addresses and Subnets to Bind?

  22. 22

    Regex: How to leave out string + space before a domain or IP address?

  23. 23

    Changing ip address for a domain name - how to test if ssl will still work?

  24. 24

    How to block access to sub-domain by IP address

  25. 25

    How can I hide the IP address associated with my domain name?

  26. 26

    How to point domain and subdomain to dedicated server using IP address?

  27. 27

    How to specify domain name and ip address in URL (ignore CN)

  28. 28

    How does a webserver know the correct domain from IP address?

  29. 29

    HAProxy how to detect url is IP address instead of domain name

HotTag

Archive