Template:Whonix-Gateway System DNS over Clearnet

From Whonix
Jump to navigation Jump to search

Clearnet Whonix-Gateway System DNS.

Whonix-Gateway System DNS is required when using DNS hostnames. [1]

1 Apply the following changes to Whonix-Gateway.

Open file /etc/resolv.conf.whonix in an editor with administrative ("root") rights.

1 Select your platform.

Non-Qubes-Whonix

2 Notes.

  • Sudoedit guidance: See Kicksecure logo Open File with Root RightsOnion network Logo for details on why using sudoedit improves security and how to use it.
  • Editor requirement: Close Featherpad (or the chosen text editor) before running the sudoedit command.

3 Open the file with root rights.

sudoedit /etc/resolv.conf.whonix

Qubes-Whonix

2 Notes.

  • Sudoedit guidance: See Kicksecure logo Open File with Root RightsOnion network Logo for details on why using sudoedit improves security and how to use it.
  • Editor requirement: Close Featherpad (or the chosen text editor) before running the sudoedit command.
  • Template requirement: When using Qubes-Whonix, this must be done inside the Template.

3 Open the file with root rights.

sudoedit /etc/resolv.conf.whonix

4 Notes.

  • Shut down Template: After applying this change, shut down the Template.
  • Restart App Qubes: All App Qubes based on the Template need to be restarted if they were already running.
  • Qubes persistence: See also Kicksecure logo Qubes PersistenceOnion network Logo
  • General procedure: This is a general procedure required for Qubes and is unspecific to Qubes-Whonix.

Others and Alternatives

2 Notes.

  • Example only: This is just an example. Other tools could achieve the same goal.
  • Troubleshooting and alternatives: If this example does not work for you, or if you are not using Whonix, please refer to Open File with Root Rights.

3 Open the file with root rights.

sudoedit /etc/resolv.conf.whonix

2 Uncomment the line #nameserver 10.0.2.3.

Remove the hash ("#") before nameserver. This means you should change #nameserver 10.0.2.3 to nameserver 10.0.2.3.

3 Follow platform-specific steps:

4 Done.

The configuration for Whonix-Gateway System DNS is complete.

5 Note for wiki editors.

Once Whonix 17.2.2.6 (Non-Qubes-WHonix) / 18.1.5.9 (Qubes-Whonix) or above is released, anon-dnsarchive.org iconarchive.today icon can be used and then the DNS enabling part can be simplified.

Footnotes

[edit]
  1. Or Advanced Users would need to hardcode IP addressed rather than using hostnames.)
  2. Replace 10.0.2.3.
      • To identify the IP to substitute, execute the command below:
      • qubesdb-read /qubes-netvm-primary-dns
      • For example, the output might be:
      • 10.139.1.1

      • In this case, replace 10.0.2.3 with 10.139.1.1. Note: Use the actual IP from the output of the qubesdb-read /qubes-netvm-primary-dns command.
Notification image

We believe security software like Whonix needs to remain Open Source and independent. Would you help sustain and grow the project? Learn more about our 14 year success story and maybe DONATE!