Jump to content
  • 2

Support Comments and Blank Lines in DNS-Based Routes


Question

Posted

Please add support for comments and empty lines in DNS-based routing lists.

When configuring DNS-based routes, it is often useful to group domain names by purpose, service, or routing policy. For example, I may want to keep domains for streaming services, AI tools, social networks, or other websites together in separate sections.

Currently, without comments and blank lines, long lists of domains can become difficult to read, organize, and maintain.

Proposed Solution

Allow users to:

  • Add comments to explain the purpose of a group of domains.
  • Insert blank lines to visually separate groups.
  • Ignore comments and empty lines when parsing the routing list, so they have no effect on routing behavior.

For example, a list could look like this:

# Streaming services
netflix.com
nflxvideo.net
nflximg.net

# AI services
chatgpt.com
openai.com
oaistatic.com

# Social networks
reddit.com
redd.it

Benefits

  • Better readability: Domain lists are easier to scan.
  • Simpler maintenance: Related domains can be grouped logically.
  • Easier troubleshooting: It is clearer why each domain is included in the routing list.
  • No change to routing logic: Comments and blank lines would be ignored during parsing and would not affect the actual routing rules.

Expected Result

DNS-based routing lists would support comments and blank lines while preserving the existing behavior of all valid domain entries.

This would be a small but useful quality-of-life improvement, especially for users maintaining large domain lists or routing rules for multiple services.

Thank you for considering this feature request!

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...