Skip to content
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

Not Able To Read /etc/resolv.conf on iOS 18 #32

Open
hiDandelion opened this issue Oct 18, 2024 · 0 comments
Open

Not Able To Read /etc/resolv.conf on iOS 18 #32

hiDandelion opened this issue Oct 18, 2024 · 0 comments

Comments

@hiDandelion
Copy link

Test Environment

OS: iOS 18.0.1
Device: iPhone 15 Pro

Related Code

DNSClient+Connect.swift line 236
let configString = try String(contentsOfFile: "/etc/resolv.conf")

Error

Error Domain=NSCocoaErrorDomain Code=260 "The file “resolv.conf” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/etc/resolv.conf, NSURL=file:///etc/resolv.conf, NSUnderlyingError=0x3016ac180 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant