-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DEV9: Add Internal DNS server #4220
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TheLastRar
force-pushed
the
DEV9-DNS
branch
2 times, most recently
from
February 9, 2021 12:03
4ec8c7f
to
09e86a0
Compare
TheLastRar
force-pushed
the
DEV9-DNS
branch
2 times, most recently
from
February 13, 2021 20:43
6188039
to
9e00f52
Compare
TheLastRar
changed the title
DEV9: Add Internal DNS server
[WIP]DEV9: Add Internal DNS server
Feb 18, 2021
TheLastRar
force-pushed
the
DEV9-DNS
branch
4 times, most recently
from
February 20, 2021 17:39
c1ab94a
to
f9b1eeb
Compare
TheLastRar
changed the title
[WIP]DEV9: Add Internal DNS server
DEV9: Add Internal DNS server
Feb 21, 2021
Marking this as WIP again as I've noted that there are a few more things I want to change |
TheLastRar
force-pushed
the
DEV9-DNS
branch
7 times, most recently
from
March 19, 2021 08:37
73be669
to
dfcfbfd
Compare
Warepire
reviewed
May 10, 2021
Warepire
reviewed
May 11, 2021
RedDevilus
approved these changes
Jul 15, 2021
Hey this feature is extremely useful and I'd love to see this merged. Is there a timeline for when it will be? |
TheLastRar
force-pushed
the
DEV9-DNS
branch
from
September 26, 2021 16:25
e6fbd07
to
fdfd59c
Compare
TheLastRar
force-pushed
the
DEV9-DNS
branch
from
September 26, 2021 16:36
fdfd59c
to
dc667da
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Using the CLR-DEV9 approach to resolve #4151
Depends on (and includes) #4301
This is a port of CLR-DEV9's DNS server, adapted to work with TAP and pcap (CLR-DEV9's was winsock only)
This PR adds an internal DNS server, that can be opted in by setting you DNS in the PS2 Network config to 192.0.2.1.
It features its own host list (DEV9Hosts.ini), allowing you to remap a url to a different IP address.
Note that while CLR-DEV9 used XML for its settings, this version uses PCSX2's iniInterface format for its host file.
If the internal DNS fails to find an url in its host list, is uses OS specific functions to look up the address.
The internal DNS will replace 127.0.0.1 with the PC's local IP (specifically the address assigned to the selected adapter), allowing PCSX2 to communicate with servers running on the same PC (i.e. developers of server revival projects may use this to allow developing on a single machine).
pcap may not fully work with 127.0.0.1 remapping, as it relies on your router to loop packets back to your PC.
Currently no UI is provided (as is the case with CLR-DEV9), and I'm not planning on providing one in this PR.